1 | <?php |
||
22 | class YmlCatalog extends Object |
||
23 | { |
||
24 | /** |
||
25 | * @var BaseFileStream |
||
26 | */ |
||
27 | public $handle; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | public $shopClass; |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $currencyClass; |
||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | public $categoryClass; |
||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | public $offerClasses; |
||
44 | /** |
||
45 | * @var null|string |
||
46 | */ |
||
47 | public $date; |
||
48 | |||
49 | /** |
||
50 | * @var null|callable |
||
51 | */ |
||
52 | public $onValidationError; |
||
53 | |||
54 | /** |
||
55 | * @var null|string |
||
56 | */ |
||
57 | public $customOfferClass; |
||
58 | |||
59 | /** |
||
60 | * @var null|string |
||
61 | */ |
||
62 | public $deliveryOptionClass; |
||
63 | |||
64 | /** |
||
65 | * @return null|string |
||
66 | */ |
||
67 | protected function getFormattedDate() |
||
77 | |||
78 | /** |
||
79 | * @throws Exception |
||
80 | */ |
||
81 | public function generate() |
||
110 | 9 | ||
111 | 9 | /** |
|
112 | 9 | * @param string $string |
|
113 | 9 | * @throws \Exception |
|
114 | 9 | */ |
|
115 | 9 | protected function write($string) |
|
119 | 6 | ||
120 | 8 | /** |
|
121 | * @param string $string tag name |
||
122 | 6 | */ |
|
123 | 6 | protected function writeTag($string) |
|
127 | |||
128 | 9 | /** |
|
129 | * @param BaseModel $model |
||
130 | 9 | * @param $valuesModel |
|
131 | * @throws Exception |
||
132 | 9 | */ |
|
133 | 3 | protected function writeModel(BaseModel $model, $valuesModel) |
|
140 | |||
141 | protected function writeTags($tags) |
||
153 | 9 | ||
154 | 9 | /** |
|
155 | * @param string|array $modelClass class name |
||
156 | */ |
||
157 | protected function writeEachModel($modelClass) |
||
184 | |||
185 | 6 | /** |
|
186 | 9 | * @param $modelClass |
|
187 | * @return Category|Currency|SimpleOffer |
||
188 | 9 | * @throws Exception |
|
189 | */ |
||
190 | 9 | protected function getNewModel($modelClass) |
|
198 | } |
||
199 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.