swap() public method

Swap handlers and/or stream between loop models.
public swap ( Kraken\Loop\LoopModelInterface $loop, boolean $all = false ) : Kraken\Loop\LoopModelInterface
$loop Kraken\Loop\LoopModelInterface
$all boolean
return Kraken\Loop\LoopModelInterface
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function swap(LoopExtendedInterface $loop, $all = false)
 {
     $this->loop->swap($loop->getModel(), $all);
     return $this;
 }