コード例 #1
0
 /**
  * Constructor
  *
  * @param Reactor $reactor
  * @param TimerFactory $timerFactory
  */
 public function __construct(Reactor $reactor, TimerFactory $timerFactory)
 {
     $this->timers = new \SplObjectStorage();
     $this->timerFactory = $timerFactory;
     parent::__construct($reactor);
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @param Reactor $reactor
  */
 public function __construct(Reactor $reactor)
 {
     $this->timers = new \ArrayObject();
     parent::__construct($reactor);
 }