carono /
php-commerceml
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Zenwalker\CommerceML\Model; |
||
| 5 | |||
| 6 | |||
| 7 | /** |
||
| 8 | * Class Order |
||
| 9 | * |
||
| 10 | * @package Zenwalker\CommerceML\Model |
||
| 11 | */ |
||
| 12 | class Order extends Simple |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Document[] |
||
| 16 | */ |
||
| 17 | public $documents = []; |
||
| 18 | |||
| 19 | 29 | public function loadXml() |
|
| 20 | { |
||
| 21 | 29 | if ($this->owner->ordersXml) { |
|
| 22 | 29 | foreach ($this->owner->ordersXml->Документ as $document) { |
|
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 23 | 29 | $this->documents[] = new Document($this->owner, $document); |
|
| 24 | } |
||
| 25 | } |
||
| 26 | 29 | return $this->owner->ordersXml; |
|
| 27 | } |
||
| 28 | } |