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