Exemplo n.º 1
0
 /**
  * @param LoopExtendedInterface $loop
  */
 public function setLoop(LoopExtendedInterface $loop)
 {
     $this->loop = $loop;
     $this->loopBackup = new Loop($this->reflect($this->loop->model()));
 }
Exemplo n.º 2
0
 /**
  *
  */
 public function setUp()
 {
     $this->loop = new Loop(new StreamSelectLoop());
     $this->loop->flush(true);
 }
Exemplo n.º 3
0
 /**
  * @param LoopExtendedInterface $loop
  * @param bool $all
  * @return LoopExtendedInterface
  */
 public function swap(LoopExtendedInterface $loop, $all = false)
 {
     $this->loop->swap($loop->model(), $all);
     return $this;
 }