You are here

public function Decorator::__call in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__call()
  2. 8 webprofiler/src/Decorator.php \Drupal\webprofiler\Decorator::__call()
  3. 8.2 webprofiler/src/Decorator.php \Drupal\webprofiler\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);
}