Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php declare(strict_types=1); |
| 2 | /* |
| 3 | * This file is part of Aplus Framework Language Library. |
| 4 | * |
| 5 | * (c) Natan Felles <natanfelles@gmail.com> |
| 6 | * |
| 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | * file that was distributed with this source code. |
| 9 | */ |
| 10 | namespace Framework\Language; |
| 11 | |
| 12 | /** |
| 13 | * Enum FallbackLevel. |
| 14 | * |
| 15 | * @package language |
| 16 | */ |
| 17 | enum FallbackLevel : int |
| 18 | { |
| 19 | /** |
| 20 | * Disable fallback. |
| 21 | * |
| 22 | * Use language lines only from the given language. |
| 23 | */ |
| 24 | case none = 0; |
| 25 | /** |
| 26 | * Fallback to parent language. |
| 27 | * |
| 28 | * If the given language is pt-BR and a line is not found, try to use the line of pt. |
| 29 | * |
| 30 | * NOTE: The parent locale must be set in the Supported Locales to this fallback work. |
| 31 | */ |
| 32 | case parent = 1; |
| 33 | /** |
| 34 | * Fallback to default language. |
| 35 | * |
| 36 | * If the parent language is not found, try to use the default language. |
| 37 | */ |
| 38 | case default = 2; |
| 39 | } |