Beispiel #1
0
 /**
  * @param LoopModelInterface $loop
  * @param bool $all
  * @return LoopModelInterface
  */
 public function swap(LoopModelInterface $loop, $all = false)
 {
     $this->stop();
     $loop->stop();
     $list = $all === true ? $this : $this->getTransferableProperties();
     foreach ($this as $key => $val) {
         $tmp = $loop->{$key};
         $loop->{$key} = $this->{$key};
         $this->{$key} = $tmp;
     }
     return $this;
 }
Beispiel #2
0
 /**
  * @return FlowController
  */
 public function getFlowController()
 {
     return $this->loop->getFlowController();
 }