1 | <?php declare (strict_types = 1); |
||
32 | class ResourceBundle implements ResourceBundleInterface |
||
33 | { |
||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $locale; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $namespace; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | private $properties; |
||
48 | |||
49 | /** |
||
50 | * @param string $locale |
||
51 | * @param string $namespace |
||
52 | * @param array $properties |
||
53 | */ |
||
54 | 9 | public function __construct(string $locale, string $namespace, array $properties) |
|
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | 9 | public function getLocale(): string |
|
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | 9 | public function getNamespace(): string |
|
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | 9 | public function getKeys(): array |
|
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | 9 | public function getValue(string $key): string |
|
92 | |||
93 | /** |
||
94 | * @param string $locale |
||
95 | * |
||
96 | * @return self |
||
97 | */ |
||
98 | 9 | public function setLocale(string $locale): self |
|
106 | |||
107 | /** |
||
108 | * @param string $namespace |
||
109 | * |
||
110 | * @return self |
||
111 | */ |
||
112 | 9 | public function setNamespace(string $namespace): self |
|
120 | |||
121 | /** |
||
122 | * @param array $properties |
||
123 | * |
||
124 | * @return self |
||
125 | */ |
||
126 | 9 | public function setProperties(array $properties): self |
|
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | 9 | public function getProperties(): array |
|
146 | } |
||
147 |