public function setLoop(LoopExtendedInterface $loop = null) { $this->loop = $loop; $this->loopBackup = $loop !== null ? new Loop($this->reflect($this->loop->getModel())) : $loop; }