proxied, $method)) { $continue = true; if (isset($this->beforeCall[$method])) { $result = $this->beforeCall[$method]->beforeCall($this->proxied, $method, $args); if ($result === false) { $continue = false; } } if ($continue) { $result = call_user_func_array(array($this->proxied, $method), $args); if (isset($this->afterCall[$method])) { $this->afterCall[$method]->afterCall($this->proxied, $method, $args, $result); } return $result; } } } }