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