1 | <?php |
||
13 | class CountryExtension extends \Twig_Extension |
||
14 | { |
||
15 | public function __construct() |
||
21 | |||
22 | public function getFilters() |
||
31 | |||
32 | /** |
||
33 | * Return the country name using the Locale class. |
||
34 | * |
||
35 | * @param string $isoCode Country ISO 3166-1 alpha 2 code |
||
36 | * @param null|string $locale Locale code |
||
37 | * |
||
38 | * @return null|string Country name |
||
39 | */ |
||
40 | public function getCountryName($isoCode, $locale = null) |
||
50 | |||
51 | public function getName() |
||
55 | } |
||
56 |