| @@ 386-398 (lines=13) @@ | ||
| 383 | * @override |
|
| 384 | * @inheritDoc |
|
| 385 | */ |
|
| 386 | public function export(LoopModelInterface $loop, $all = false) |
|
| 387 | { |
|
| 388 | $this->stop(); |
|
| 389 | $loop->stop(); |
|
| 390 | ||
| 391 | $list = $all === true ? $this : $this->getTransferableProperties(); |
|
| 392 | foreach ($list as $key=>$val) |
|
| 393 | { |
|
| 394 | $loop->$key = $this->$key; |
|
| 395 | } |
|
| 396 | ||
| 397 | return $this; |
|
| 398 | } |
|
| 399 | ||
| 400 | /** |
|
| 401 | * @override |
|
| @@ 404-416 (lines=13) @@ | ||
| 401 | * @override |
|
| 402 | * @inheritDoc |
|
| 403 | */ |
|
| 404 | public function import(LoopModelInterface $loop, $all = false) |
|
| 405 | { |
|
| 406 | $this->stop(); |
|
| 407 | $loop->stop(); |
|
| 408 | ||
| 409 | $list = $all === true ? $this : $this->getTransferableProperties(); |
|
| 410 | foreach ($list as $key=>$val) |
|
| 411 | { |
|
| 412 | $this->$key = $loop->$key; |
|
| 413 | } |
|
| 414 | ||
| 415 | return $this; |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * @override |
|