1 | <?php |
||
19 | class YmlCatalog |
||
20 | { |
||
21 | /** |
||
22 | * @var BaseFileStream |
||
23 | */ |
||
24 | protected $handle; |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $shopClass; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $currencyClass; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $categoryClass; |
||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $localDeliveryCostClass; |
||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $offerClass; |
||
45 | /** |
||
46 | * @var null|string |
||
47 | */ |
||
48 | protected $date; |
||
49 | |||
50 | /** |
||
51 | * @var null|callable |
||
52 | */ |
||
53 | protected $onValidationError; |
||
54 | |||
55 | /** |
||
56 | * @var null|string |
||
57 | */ |
||
58 | protected $customOfferClass; |
||
59 | 6 | ||
60 | /** |
||
61 | * @param BaseFileStream $handle |
||
62 | * @param string $shopClass class name |
||
63 | * @param string $currencyClass class name |
||
64 | * @param string $categoryClass class name |
||
65 | * @param string $localDeliveryCostClass class name |
||
66 | * @param array $offerClasses |
||
67 | * @param null|string $date |
||
68 | 6 | * @param null|callable $onValidationError |
|
69 | 6 | * @param null|string $customOfferClass |
|
70 | 6 | */ |
|
71 | 6 | public function __construct( |
|
92 | 6 | ||
93 | 6 | /** |
|
94 | 6 | * @throws Exception |
|
95 | 6 | */ |
|
96 | 6 | public function generate() |
|
124 | |||
125 | /** |
||
126 | * @return null|string |
||
127 | 6 | */ |
|
128 | protected function getDate() |
||
138 | 6 | ||
139 | /** |
||
140 | * @param string $string |
||
141 | * @throws \Exception |
||
142 | */ |
||
143 | protected function write($string) |
||
147 | 6 | ||
148 | 6 | /** |
|
149 | 6 | * @param string $string tag name |
|
150 | 6 | */ |
|
151 | protected function writeTag($string) |
||
155 | 6 | ||
156 | 6 | /** |
|
157 | 6 | * @param BaseModel $model model |
|
158 | 6 | * @param $valuesModel |
|
159 | 6 | * @throws Exception |
|
160 | 6 | */ |
|
161 | 6 | protected function writeModel(BaseModel $model, $valuesModel) |
|
191 | |||
192 | /** |
||
193 | * @param string|array $modelClass class name |
||
194 | 6 | */ |
|
195 | protected function writeEachModel($modelClass) |
||
211 | |||
212 | /** |
||
213 | * @param $modelClass |
||
214 | * @return Category|Currency|SimpleOffer |
||
215 | * @throws Exception |
||
216 | */ |
||
217 | protected function getNewModel($modelClass) |
||
236 | } |
||
237 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.