protected function addMethod($name, array $arguments = array())
    {
        $this->methods[] = new MethodCall($this, $name, $arguments);

        return $this;
    }
protected function addMethod($name, array $arguments = array())
    {
        $this->methods[] = new MethodCall($this, $name, $arguments);

        return $this;
    }
protected function addMethod ( $ name , array $ arguments = array ( ) ) { $ this -> methods [ ] = new MethodCall ( $ this , $ name , $ arguments ) ; return $ this ; }
Add a method call.

@param string $name      Method name.
@param array  $arguments Method arguments.

@return $this
Add a method call .