51 throw new \InvalidArgumentException(
'Not a valid callable');
60 $this->callableObj = $callable;
79 return call_user_func_array($this->callableObj, $args);
91 $parts = explode(
'::', $this->representation);
94 if (count($parts) == 1) {
95 return new \ReflectionFunction($this->callableObj);
99 if (!is_array($this->callableObj)) {
100 $callable = array($this->callableObj, $parts[1]);
104 return new \ReflectionMethod($callable[0], $callable[1]);
$callableObj
Inner callable object, as used by PHP.
Interface for something that can be called.
$representation
Human representation of the inner callable.
Class used to represent anything that is callable.