public import ( Kraken\Loop\LoopModelInterface $loop, $all = false ) | ||
$loop | Kraken\Loop\LoopModelInterface |
public function import(LoopModelInterface $loop, $all = false)
{
$this->stop();
$loop->stop();
$list = $all === true ? $this : $this->getTransferableProperties();
foreach ($list as $key => $val) {
$this->{$key} = $loop->{$key};
}
return $this;
}