class TargetOperation extends AbstractOperation
Target operation between two catalogues: intersection = source ∩ target = {x: x ∈ source ∧ x ∈ target} all = intersection ∪ (target ∖ intersection) = target new = all ∖ source = {x: x ∈ target ∧ x ∉ source} obsolete = source ∖ all = source ∖ target = {x: x ∈ source ∧ x ∉ target} Basically, the result contains messages from the target catalogue.
| protected | $source | from AbstractOperation | |
| protected | $target | from AbstractOperation | |
| protected | $result | from AbstractOperation | |
| protected array | $messages | This array stores 'all', 'new' and 'obsolete' messages for all valid domains. | from AbstractOperation |
| __construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target) | from AbstractOperation | |
| array | getDomains() Returns domains affected by operation. | from AbstractOperation |
| array | getMessages(string $domain) Returns all valid messages ('all') after operation. | from AbstractOperation |
| array | getNewMessages(string $domain) Returns new messages ('new') after operation. | from AbstractOperation |
| array | getObsoleteMessages(string $domain) Returns obsolete messages ('obsolete') after operation. | from AbstractOperation |
| MessageCatalogueInterface | getResult() Returns resulting catalogue ('result'). | from AbstractOperation |
| processDomain(string $domain) Performs operation on source and target catalogues for the given domain and stores the results. |
| MessageCatalogueInterface | $source | |
| MessageCatalogueInterface | $target |
| LogicException |
Returns domains affected by operation.
| array |
Returns all valid messages ('all') after operation.
| string | $domain |
| array |
Returns new messages ('new') after operation.
| string | $domain |
| array |
Returns obsolete messages ('obsolete') after operation.
| string | $domain |
| array |
Returns resulting catalogue ('result').
| MessageCatalogueInterface |
Performs operation on source and target catalogues for the given domain and stores the results.
| string | $domain | The domain which the operation will be performed for |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Catalogue/TargetOperation.html