carono /
php-commerceml
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Zenwalker\CommerceML\Collections; |
||
| 5 | |||
| 6 | |||
| 7 | use Zenwalker\CommerceML\Model\Simple; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Class ValueProperties |
||
| 11 | * |
||
| 12 | * @package Zenwalker\CommerceML\Model |
||
| 13 | */ |
||
| 14 | class RequisiteCollection extends Simple |
||
| 15 | { |
||
| 16 | 1 | public function init() |
|
| 17 | { |
||
| 18 | 1 | if (isset($this->xml->ЗначениеРеквизита)) { |
|
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 19 | 1 | foreach ($this->xml->ЗначениеРеквизита as $requisite) { |
|
| 20 | 1 | $this->append(new Simple($this->owner, $requisite)); |
|
| 21 | } |
||
| 22 | } |
||
| 23 | 1 | parent::init(); |
|
| 24 | 1 | } |
|
| 25 | |||
| 26 | } |