The validation itself is performed after fulfilling the condition. The condition is checked by a defined validator.
Автор: Roman Řáha
Наследование: extends Jyxo\Input\Chain
Пример #1
0
Файл: Chain.php Проект: jyxo/php
 /**
  * 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;
 }