1 | <?php namespace Propaganistas\LaravelPhone\Traits; |
||
6 | trait ParsesCountries |
||
7 | { |
||
8 | /** |
||
9 | * Determine whether the given country code is valid. |
||
10 | * |
||
11 | * @param string $country |
||
12 | * @return bool |
||
13 | */ |
||
14 | 126 | public static function isValidCountryCode($country) |
|
26 | |||
27 | /** |
||
28 | * Parse the provided phone countries to a valid array. |
||
29 | * |
||
30 | * @param string|array $countries |
||
31 | * @return array |
||
32 | */ |
||
33 | 120 | protected function parseCountries($countries) |
|
43 | } |