Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | 2 | protected function loadPropertiesValue() |
|
32 | { |
||
33 | 2 | foreach ($this->xml->ЗначенияСвойства as $property) { |
|
|
|||
34 | 2 | $properties = $this->owner->classifier->getProperties(); |
|
35 | 2 | $object = clone $properties->getById((string)$property->Ид); |
|
36 | 2 | $object->productId = (string)$this->xpath('..')[0]->Ид; |
|
37 | 2 | $object->init(); |
|
38 | 2 | $this->append($object); |
|
39 | } |
||
59 | } |