AbstractOperation
class AbstractOperation implements OperationInterface
Base catalogues binary operation class.
Methods
__construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target) | ||
array | getDomains() Returns domains affected by operation. | |
array | getMessages(string $domain) Returns all valid messages after operation. | |
array | getNewMessages(string $domain) Returns new messages after operation. | |
array | getObsoleteMessages(string $domain) Returns obsolete messages after operation. | |
MessageCatalogueInterface | getResult() Returns resulting catalogue. |
Details
__construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target)
Parameters
MessageCatalogueInterface | $source | |
MessageCatalogueInterface | $target |
Exceptions
LogicException |
array getDomains()
Returns domains affected by operation.
Return Value
array |
array getMessages(string $domain)
Returns all valid messages after operation.
Parameters
string | $domain |
Return Value
array |
array getNewMessages(string $domain)
Returns new messages after operation.
Parameters
string | $domain |
Return Value
array |
array getObsoleteMessages(string $domain)
Returns obsolete messages after operation.
Parameters
string | $domain |
Return Value
array |
MessageCatalogueInterface getResult()
Returns resulting catalogue.
Return Value
MessageCatalogueInterface |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Translation/Catalogue/AbstractOperation.html