示例#1
0
 public function __construct($name, $factoryService, $factoryMethod, array $factoryArguments = array())
 {
     parent::__construct($name);
     $this->setFactoryService($factoryService);
     $this->setFactoryMethod($factoryMethod);
     $this->setFactoryArguments($factoryArguments);
 }
示例#2
0
 public function __construct($name, $object)
 {
     parent::__construct($name);
     $this->instance = $object;
     $this->class = Debugger::getType($object);
 }
示例#3
0
 public function __construct($name, $closure)
 {
     parent::__construct($name);
     $this->closure = $closure;
 }