addWalk() public method

Adds a new subchain and returns its instance.
public addWalk ( ) : self
return self
Beispiel #1
0
 /**
  * Adds a subchain to the current chain that treats the value a an array.
  * Automatically adds the isArray validator.
  *
  * @param boolean $addFilter Add the Trim filter (removes empty elements)
  * @return \Jyxo\Input\Fluent
  */
 public function walk(bool $addFilter = true) : self
 {
     $this->validate('isArray');
     if (false != $addFilter) {
         $this->filter('trim');
     }
     $this->chain = $this->chain->addWalk();
     return $this;
 }