class DiffOperation extends TargetOperation

deprecated since version 2.8, to be removed in 3.0. Use TargetOperation instead.

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}

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

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.

getResult()

Returns resulting catalogue ('result').

processDomain(string $domain)

Performs operation on source and target catalogues for the given domain and stores the results.

Details

in AbstractOperation at line 62
__construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target)

in AbstractOperation at line 77
array getDomains()

Returns domains affected by operation.

Return Value

array

in AbstractOperation at line 89
array getMessages(string $domain)

Returns all valid messages ('all') after operation.

Parameters

string $domain

Return Value

array

in AbstractOperation at line 105
array getNewMessages(string $domain)

Returns new messages ('new') after operation.

Parameters

string $domain

Return Value

array

in AbstractOperation at line 121
array getObsoleteMessages(string $domain)

Returns obsolete messages ('obsolete') after operation.

Parameters

string $domain

Return Value

array

in AbstractOperation at line 137
MessageCatalogueInterface getResult()

Returns resulting catalogue ('result').

in TargetOperation at line 29
protected processDomain(string $domain)

Performs operation on source and target catalogues for the given domain and stores the results.

Parameters

string $domain The domain which the operation will be performed for