Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class Offer extends Simple |
||
18 | { |
||
19 | /** |
||
20 | * @var Price |
||
21 | */ |
||
22 | protected $prices = []; |
||
23 | protected $specifications = []; |
||
24 | |||
25 | /** |
||
26 | * @return array|SpecificationCollection |
||
27 | */ |
||
28 | 1 | public function getSpecifications() |
|
29 | { |
||
30 | 1 | if (empty($this->specifications)) { |
|
31 | 1 | $this->specifications = new SpecificationCollection($this->owner, $this->ХарактеристикиТовара); |
|
32 | } |
||
33 | 1 | return $this->specifications; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return Price |
||
38 | */ |
||
39 | 1 | public function getPrices() |
|
45 | } |
||
46 | } |