The validation itself is performed after fulfilling the condition. The condition is checked by a defined validator.
Author: Roman Řáha
Inheritance: extends Jyxo\Input\Chain
Exemple #1
0
 /**
  * Adds a new conditional subchain and returns its instance.
  *
  * @param \Jyxo\Input\Chain\Conditional $chain
  * @return \Jyxo\Input\Chain\Conditional
  */
 public function addCondition(\Jyxo\Input\Chain\Conditional $chain) : self
 {
     $chain->setParent($this);
     $this->chain[] = [self::CONDITION, $chain];
     return $chain;
 }