| Total Complexity | 1 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Locale |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Full locale with language and optional country code. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $locale; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Language code of the locale. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $language; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Country code of the locale, if available. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $country; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * An indicator of importance, where 1.0 is most |
||
| 30 | * important and 0.0 is least important. |
||
| 31 | * |
||
| 32 | * @var float |
||
| 33 | */ |
||
| 34 | public $weight; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Create a new Locale instance. |
||
| 38 | * |
||
| 39 | * @param string $locale |
||
| 40 | * @param string $language |
||
| 41 | * @param string $country |
||
| 42 | * @param float $weight |
||
| 43 | */ |
||
| 44 | 8 | public function __construct($locale, $language, $country, $weight) |
|
| 52 |