1 | <?php |
||
20 | class ChainStorage implements StorageInterface |
||
21 | { |
||
22 | private $storages = []; |
||
23 | |||
24 | /** |
||
25 | * @param StorageInterface[] $storages |
||
26 | */ |
||
27 | 8 | public function __construct(array $storages = []) |
|
31 | |||
32 | 8 | public function addStorage(StorageInterface $storage): void |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 3 | public function get(string $locale, string $domain, string $key): ?MessageInterface |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 1 | public function create(MessageInterface $message): void |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 1 | public function update(MessageInterface $message): void |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 1 | public function delete(string $locale, string $domain, string $key): void |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 1 | public function export(MessageCatalogueInterface $catalogue, array $options = []): void |
|
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | 1 | public function import(MessageCatalogueInterface $catalogue, array $options = []): void |
|
100 | } |
||
101 |