blob: a32193f29c78527bc9f30457d22763258e187588 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Translation\Provider;
13
14use Symfony\Component\Translation\TranslatorBag;
15use Symfony\Component\Translation\TranslatorBagInterface;
16
17interface ProviderInterface
18{
19 public function __toString(): string;
20
21 /**
22 * Translations available in the TranslatorBag only must be created.
23 * Translations available in both the TranslatorBag and on the provider
24 * must be overwritten.
25 * Translations available on the provider only must be kept.
26 */
27 public function write(TranslatorBagInterface $translatorBag): void;
28
29 public function read(array $domains, array $locales): TranslatorBag;
30
31 public function delete(TranslatorBagInterface $translatorBag): void;
32}