4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation\Catalogue
;
14 use Symfony\Component\Translation\MessageCatalogueInterface
;
17 * Represents an operation on catalogue(s).
19 * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
21 interface OperationInterface
24 * Returns domains affected by operation.
28 public function getDomains();
31 * Returns all valid messages after operation.
33 * @param string $domain
37 public function getMessages($domain);
40 * Returns new messages after operation.
42 * @param string $domain
46 public function getNewMessages($domain);
49 * Returns obsolete messages after operation.
51 * @param string $domain
55 public function getObsoleteMessages($domain);
58 * Returns resulting catalogue.
60 * @return MessageCatalogueInterface
62 public function getResult();