| @@ 23-31 (lines=9) @@ | ||
| 20 | * |
|
| 21 | * @return string|null |
|
| 22 | */ |
|
| 23 | public function iso2ToNumeric($iso2CountryCode) |
|
| 24 | { |
|
| 25 | $key = $this->searchArrayIndex($iso2CountryCode, static::ISO2_KEY); |
|
| 26 | if ($key !== false) { |
|
| 27 | return ArvatoRssCountryConfig::ISO3166[$key][static::ISO3166_KEY]; |
|
| 28 | } |
|
| 29 | ||
| 30 | return null; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @param string $iso3166CountryCode |
|
| @@ 38-46 (lines=9) @@ | ||
| 35 | * |
|
| 36 | * @return string|null |
|
| 37 | */ |
|
| 38 | public function numericToIso2($iso3166CountryCode) |
|
| 39 | { |
|
| 40 | $key = $this->searchArrayIndex($iso3166CountryCode, static::ISO3166_KEY); |
|
| 41 | if ($key !== false) { |
|
| 42 | return ArvatoRssCountryConfig::ISO3166[$key][static::ISO2_KEY]; |
|
| 43 | } |
|
| 44 | ||
| 45 | return null; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @param string $value |
|