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}

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').

Details

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

Parameters

MessageCatalogueInterface $source The source catalogue
MessageCatalogueInterface $target The target catalogue

Exceptions

LogicException

in AbstractOperation at line line 93
array getDomains()

Returns domains affected by operation.

Return Value

array

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

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

Parameters

string $domain

Return Value

array

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

Returns new messages ('new') after operation.

Parameters

string $domain

Return Value

array

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

Returns obsolete messages ('obsolete') after operation.

Parameters

string $domain

Return Value

array

in AbstractOperation at line line 153
MessageCatalogueInterface getResult()

Returns resulting catalogue ('result').