| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait LocaleValuesTrait |
||
| 10 | { |
||
| 11 | use LocaleKeysTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Get a localization for the given state and its value. |
||
| 15 | * |
||
| 16 | * @param string $state_name |
||
| 17 | * @param mixed $state_value |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | private function getLocale(string $state_name, $state_value): string |
||
| 21 | { |
||
| 22 | return trans($this->getLocaleKey($state_name, $state_value)); |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get a localizations for the given state. |
||
| 27 | * |
||
| 28 | * @param string $state_name |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | private function getLocales(string $state_name): array |
||
| 34 | } |
||
| 35 | } |
||
| 36 |