/** * @param ApistMethod $method * @param $node * @return mixed */ protected function callResourceMethod(ApistMethod $method, $node) { $arguments = $this->arguments; array_unshift($arguments, $node); return call_user_func_array([$method->getResource(), $this->methodName], $arguments); }
/** * @param mixed $node * @param ApistMethod $method */ function __construct($node, ApistMethod $method) { $this->node = $node; $this->method = $method; $this->resource = $method->getResource(); }