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 | 102 | public static function isValidCountryCode($country) |
|
18 | |||
19 | /** |
||
20 | * Parse the provided phone countries to a valid array. |
||
21 | * |
||
22 | * @param string|array $countries |
||
23 | * @return array |
||
24 | */ |
||
25 | 96 | protected function parseCountries($countries) |
|
35 | } |