diff options
Diffstat (limited to 'vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php')
-rw-r--r-- | vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php b/vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php new file mode 100644 index 00000000..d72378a3 --- /dev/null +++ b/vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php | |||
@@ -0,0 +1,63 @@ | |||
1 | <?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 | |||
12 | namespace Symfony\Component\Translation\Catalogue; | ||
13 | |||
14 | use Symfony\Component\Translation\MessageCatalogueInterface; | ||
15 | |||
16 | /** | ||
17 | * Represents an operation on catalogue(s). | ||
18 | * | ||
19 | * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> | ||
20 | */ | ||
21 | interface OperationInterface | ||
22 | { | ||
23 | /** | ||
24 | * Returns domains affected by operation. | ||
25 | * | ||
26 | * @return array | ||
27 | */ | ||
28 | public function getDomains(); | ||
29 | |||
30 | /** | ||
31 | * Returns all valid messages after operation. | ||
32 | * | ||
33 | * @param string $domain | ||
34 | * | ||
35 | * @return array | ||
36 | */ | ||
37 | public function getMessages($domain); | ||
38 | |||
39 | /** | ||
40 | * Returns new messages after operation. | ||
41 | * | ||
42 | * @param string $domain | ||
43 | * | ||
44 | * @return array | ||
45 | */ | ||
46 | public function getNewMessages($domain); | ||
47 | |||
48 | /** | ||
49 | * Returns obsolete messages after operation. | ||
50 | * | ||
51 | * @param string $domain | ||
52 | * | ||
53 | * @return array | ||
54 | */ | ||
55 | public function getObsoleteMessages($domain); | ||
56 | |||
57 | /** | ||
58 | * Returns resulting catalogue. | ||
59 | * | ||
60 | * @return MessageCatalogueInterface | ||
61 | */ | ||
62 | public function getResult(); | ||
63 | } | ||