/** * Construtor * * @param string $field * @param string $errorMessage * @param float $min * @param float $max * @author Hugo Ferreira da Silva */ public function __construct($field, $errorMessage, $min = null, $max = null) { parent::__construct($field, $errorMessage); $this->min = $min; $this->max = $max; }
/** * Construtor * * @param string $field * @param string $errorMessage * @param string $minDate * @param string $maxDate * @author Hugo Ferreira da Silva */ public function __construct($field, $errorMessage, $minDate = null, $maxDate = null) { parent::__construct($field, $errorMessage); $this->minDate = $minDate; $this->maxDate = $maxDate; }
/** * Construtor * * @param string $field * @param string $errorMessage * @param mixed $callback * @author Hugo Ferreira da Silva * @see Lumine_Validator_AbstractValidator::__construct() */ public function __construct($field, $errorMessage, $callback) { parent::__construct($field, $errorMessage); $this->callback = $callback; }
/** * Construtor * * @param string $field * @param string $errorMessage * @param int $minLength * @param int $maxLength * @author Hugo Ferreira da Silva */ public function __construct($field, $errorMessage, $minLength = null, $maxLength = null) { parent::__construct($field, $errorMessage); $this->minLength = $minLength; $this->maxLength = $maxLength; }