MergeOperation
class MergeOperation extends AbstractOperation
Merge operation between two catalogues as follows: all = source ∪ target = {x: x ∈ source ∨ x ∈ target} new = all ∖ source = {x: x ∈ target ∧ x ∉ source} obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ source ∧ x ∉ target} = ∅ Basically, the result contains messages from both catalogues.
Properties
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 |
Methods
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
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.