| 1 | <?php |
||
| 17 | class Localized |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $key; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $args; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | * |
||
| 32 | * @param string $key |
||
| 33 | * @param array $args |
||
| 34 | */ |
||
| 35 | public function __construct(string $key, array $args = []) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get localized key |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getKey() : string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get localized args |
||
| 53 | * |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function getArgs() : array |
||
| 60 | } |
||
| 61 |