function Decorator::__call

Parameters

$method:

$args:

Return value

mixed

Throws

\Exception

File

webprofiler/src/Decorator.php, line 73

Class

Decorator
Generic class Decorator.

Namespace

Drupal\webprofiler

Code

public function __call($method, $args) {
    if ($object = $this->isCallable($method)) {
        return call_user_func_array([
            $object,
            $method,
        ], $args);
    }
    throw new \Exception('Undefined method - ' . get_class($this->getOriginalObject()) . '::' . $method);
}