src/Plugin/Stub.php
public function where($requirements = [])
    {
        foreach ($requirements as $name => $args) {
            if (!isset($this->_chain[$name])) {
                throw new InvalidArgumentException("Unexisting `{$name}` as method as part of the chain definition.");
            }
            if (!is_array($args)) {
                throw new InvalidArgumentException("Argument requirements must be an arrays for `{$name}` method.");
            }
            call_user_func_array([$this->_chain[$name], 'with'], $args);
        }
        return $this;
    }
public function where($requirements = [])
    {
        foreach ($requirements as $name => $args) {
            if (!isset($this->_chain[$name])) {
                throw new InvalidArgumentException("Unexisting `{$name}` as method as part of the chain definition.");
            }
            if (!is_array($args)) {
                throw new InvalidArgumentException("Argument requirements must be an arrays for `{$name}` method.");
            }
            call_user_func_array([$this->_chain[$name], 'with'], $args);
        }
        return $this;
    }
public function where ( $ requirements = [ ] ) { foreach ( $ requirements as $ name => $ args ) { if ( ! isset ( $ this -> _chain [ $ name ] ) ) { throw new InvalidArgumentException ( "Unexisting `{$name}` as method as part of the chain definition." ) ; } if ( ! is_array ( $ args ) ) { throw new InvalidArgumentException ( "Argument requirements must be an arrays for `{$name}` method." ) ; } call_user_func_array ( [ $ this -> _chain [ $ name ] , 'with' ] , $ args ) ; } return $ this ; }
Set arguments requirement indexed by method name.

@param  mixed ... <0,n> Argument(s).
@return self
Set arguments requirement indexed by method name .