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