@@ 188-195 (lines=8) @@ | ||
185 | return is_numeric($value) ? static::API_NUMBER : null; |
|
186 | } |
|
187 | ||
188 | protected function guessEnum($value) |
|
189 | { |
|
190 | if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_string($value[static::PROP_LABEL])) { |
|
191 | return static::API_ENUM; |
|
192 | } |
|
193 | ||
194 | return null; |
|
195 | } |
|
196 | ||
197 | protected function guessLocalizedEnum($value) |
|
198 | { |
|
@@ 197-204 (lines=8) @@ | ||
194 | return null; |
|
195 | } |
|
196 | ||
197 | protected function guessLocalizedEnum($value) |
|
198 | { |
|
199 | if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_array($value[static::PROP_LABEL])) { |
|
200 | return static::API_LENUM; |
|
201 | } |
|
202 | ||
203 | return null; |
|
204 | } |
|
205 | ||
206 | protected function guessMoney($value) |
|
207 | { |
|
@@ 206-213 (lines=8) @@ | ||
203 | return null; |
|
204 | } |
|
205 | ||
206 | protected function guessMoney($value) |
|
207 | { |
|
208 | if ($this->hasKeys($value, [static::PROP_CENT_AMOUNT, static::PROP_CURRENCY_CODE])) { |
|
209 | return static::API_MONEY; |
|
210 | } |
|
211 | ||
212 | return null; |
|
213 | } |
|
214 | ||
215 | protected function guessReference($value) |
|
216 | { |
|
@@ 215-222 (lines=8) @@ | ||
212 | return null; |
|
213 | } |
|
214 | ||
215 | protected function guessReference($value) |
|
216 | { |
|
217 | if ($this->hasKeys($value, [static::PROP_TYPE_ID, static::PROP_ID])) { |
|
218 | return static::API_REFERENCE; |
|
219 | } |
|
220 | ||
221 | return null; |
|
222 | } |
|
223 | ||
224 | protected function guessLocalizedText($value) |
|
225 | { |