示例#1
0
 function __construct($class, $method, $parent)
 {
     $callable = array(new $class(), $method->name);
     parent::__construct(self::_get_name($method), $callable, $method, $parent);
 }
示例#2
0
 function __construct($name, $callable)
 {
     $this->name = $name;
     $this->callable = $callable;
     $method = new \ReflectionMethod($this->callable, '__invoke');
     parent::__construct($method);
 }