class DiffOperation extends TargetOperation
Diff operation between two catalogues.
The name of 'Diff' is misleading because the operation has nothing to do with diff:
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}
__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 |
Returns domains affected by operation.
Returns all valid messages ('all') after operation.
Returns new messages ('new') after operation.
Returns obsolete messages ('obsolete') after operation.
Returns resulting catalogue ('result').
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Translation/Catalogue/DiffOperation.html