示例#1
0
 /**
  * @param LoopExtendedInterface $loop
  */
 public function setLoop(LoopExtendedInterface $loop)
 {
     $this->loop = $loop;
     $this->loopBackup = new Loop($this->reflect($this->loop->model()));
 }
示例#2
0
 /**
  *
  */
 public function setUp()
 {
     $this->loop = new Loop(new StreamSelectLoop());
     $this->loop->flush(true);
 }
示例#3
0
文件: Loop.php 项目: khelle/surume
 /**
  * @param LoopExtendedInterface $loop
  * @param bool $all
  * @return LoopExtendedInterface
  */
 public function swap(LoopExtendedInterface $loop, $all = false)
 {
     $this->loop->swap($loop->model(), $all);
     return $this;
 }