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;
 }