public function getMethod($name)
    {
        var_dump(array_keys($this->methods));

        if (!isset($this->methods[$name])) {
            throw new RuntimeException(sprintf(
                'Unable to find RPC method %s', $name
            ));
        }

        return $this->methods[$name];
    }
public function getMethod($name)
    {
        var_dump(array_keys($this->methods));

        if (!isset($this->methods[$name])) {
            throw new RuntimeException(sprintf(
                'Unable to find RPC method %s', $name
            ));
        }

        return $this->methods[$name];
    }
public function getMethod ( $ name ) { var_dump ( array_keys ( $ this -> methods ) ) ; if ( ! isset ( $ this -> methods [ $ name ] ) ) { throw new RuntimeException ( sprintf ( 'Unable to find RPC method %s' , $ name ) ) ; } return $ this -> methods [ $ name ] ; }
Returns the method with the given name

@param  string $name
@return RPC\Method
Returns the method with the given name