/** * @param string * @param array * @return mixed */ public function __call($name, $args) { if (!isset($this->methods[$name])) { $a = new AccessMethod($this->reflection->getName(), $name); $this->methods[$name] = $a->asInstance($this->instance); } return $this->methods[$name]->callArgs($args); }