/** * * @param type $type Must be one of the TYPE_ constants provided in this class * @param type $value * @throws ValidationException */ public function __construct($type, $value) { parent::__construct(); if (array_search($type, ['=', '>=', '<=', '>', '<']) === false) { throw new ValidationException("Incorrect type flag passed into conditional validation node with type: {$type}"); } $this->type = $type; $this->value = $value; }
public function __construct(ValidationProfile $profile = NULL) { parent::__construct(); $this->profile = $profile; }
public function __construct() { parent::__construct(); $this->nodes = []; }