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.
Methods
__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 |
Details
__construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target)
array getDomains()
Returns domains affected by operation.
array getMessages(string $domain)
Returns all valid messages ('all') after operation.
array getNewMessages(string $domain)
Returns new messages ('new') after operation.
array getObsoleteMessages(string $domain)
Returns obsolete messages ('obsolete') after operation.
MessageCatalogueInterface getResult()
Returns resulting catalogue ('result').
Please login to continue.