@@ 439-446 (lines=8) @@ | ||
436 | return is_numeric($value) ? static::API_NUMBER : null; |
|
437 | } |
|
438 | ||
439 | protected function guessEnum($value) |
|
440 | { |
|
441 | if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_string($value[static::PROP_LABEL])) { |
|
442 | return static::API_ENUM; |
|
443 | } |
|
444 | ||
445 | return null; |
|
446 | } |
|
447 | ||
448 | protected function guessLocalizedEnum($value) |
|
449 | { |
|
@@ 448-455 (lines=8) @@ | ||
445 | return null; |
|
446 | } |
|
447 | ||
448 | protected function guessLocalizedEnum($value) |
|
449 | { |
|
450 | if ($this->hasKeys($value, [static::PROP_KEY, static::PROP_LABEL]) && is_array($value[static::PROP_LABEL])) { |
|
451 | return static::API_LENUM; |
|
452 | } |
|
453 | ||
454 | return null; |
|
455 | } |
|
456 | ||
457 | protected function guessMoney($value) |
|
458 | { |
|
@@ 457-464 (lines=8) @@ | ||
454 | return null; |
|
455 | } |
|
456 | ||
457 | protected function guessMoney($value) |
|
458 | { |
|
459 | if ($this->hasKeys($value, [static::PROP_CENT_AMOUNT, static::PROP_CURRENCY_CODE])) { |
|
460 | return static::API_MONEY; |
|
461 | } |
|
462 | ||
463 | return null; |
|
464 | } |
|
465 | ||
466 | protected function guessReference($value) |
|
467 | { |
|
@@ 466-473 (lines=8) @@ | ||
463 | return null; |
|
464 | } |
|
465 | ||
466 | protected function guessReference($value) |
|
467 | { |
|
468 | if ($this->hasKeys($value, [static::PROP_TYPE_ID, static::PROP_ID])) { |
|
469 | return static::API_REFERENCE; |
|
470 | } |
|
471 | ||
472 | return null; |
|
473 | } |
|
474 | ||
475 | protected function guessLocalizedText($value) |
|
476 | { |