Source for file AValidatorViolation.php

Documentation is available at AValidatorViolation.php

  1. <?php
  2.  
  3. /**
  4.  * A violation of a validator rule
  5.  *
  6.  */
  7.  
  8.     private $code;
  9.  
  10.     private $message;
  11.  
  12.  
  13.     private $rule;
  14.  
  15.  
  16.  
  17.     public function __construct($code,$message,$rule){
  18.         $this->code=$code;
  19.         $this->message=$message;
  20.         $this->rule = $rule;
  21.     }
  22.  
  23.  
  24.     public function getMessage(){
  25.         return $this->message;
  26.     }
  27.  
  28.     public function getRule(){
  29.         return $this->rule;
  30.     }
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.     public function getCode(){
  39.         return $this->code;
  40.     }
  41.  
  42.  
  43. }
  44.  
  45.  
  46.  
  47. ?>

Documentation generated on Fri, 11 Jul 2008 13:28:44 -0400 by phpDocumentor 1.4.2