/** * @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; }
public function __construct(KeyValue $kv, $allowWhiteSpace = false) { parent::__construct($kv); $this->whiteSpaceAllowed = $allowWhiteSpace; }
/** * @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; }
/** * @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; }
public function __construct(KeyValue $kv) { parent::__construct($kv); }