Example #1
0
 /**
  * @param KeyValue   $kv               The object representing the value to validate.
  * @param string     $errorMessage     Error message.
  * @param number     $min              Minimum length for the string carried by KeyValue.
  * @param number     $max              Maximum length for the string carried by KeyValue.
  */
 public function __construct(KeyValue $kv, $errorMessage, $min, $max)
 {
     parent::__construct($kv);
     $this->errorMessage = $errorMessage;
     $this->min = $min;
     $this->max = $max;
 }
Example #2
0
 public function __construct(KeyValue $kv, $allowWhiteSpace = false)
 {
     parent::__construct($kv);
     $this->whiteSpaceAllowed = $allowWhiteSpace;
 }
Example #3
0
 /**
  * @param KeyValue $kv
  * @param string $errorMessage
  * @param boolean $remoteCheck 
  */
 public function __construct(KeyValue $kv, $errorMessage, $remoteCheck = false)
 {
     parent::__construct($kv);
     $this->remoteCheck = $remoteCheck;
     $this->errorMessage = $errorMessage;
 }
 /**
  * @param KeyValue  $kv              The object representing the value to validate.
  * @param string    $errorMessage    The error message.
  * @param array     $matches         An array containing the allowed values.
  */
 public function __construct(KeyValue $kv, $errorMessage, array $matches)
 {
     parent::__construct($kv);
     $this->errorMessage = $errorMessage;
     $this->values = $matches;
 }
Example #5
0
 /**
  * @param KeyValue   $kv              The object representing the value to validate.
  * @param string     $errorMessage    The massage to be made available when the two strings don't pass the comparison test.
  * @param string     $comparison      The String to be used for comparison.
  */
 public function __construct(KeyValue $kv, $errorMessage, $comparison)
 {
     parent::__construct($kv);
     $this->errorMessage = $errorMessage;
     $this->comparison = $comparison;
 }
Example #6
0
 public function __construct(KeyValue $kv)
 {
     parent::__construct($kv);
 }