DiffOperation deprecated

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

__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)

Parameters

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

Exceptions

LogicException

array getDomains()

Returns domains affected by operation.

Return Value

array

array getMessages(string $domain)

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

Parameters

string $domain

Return Value

array

array getNewMessages(string $domain)

Returns new messages ('new') after operation.

Parameters

string $domain

Return Value

array

array getObsoleteMessages(string $domain)

Returns obsolete messages ('obsolete') after operation.

Parameters

string $domain

Return Value

array

MessageCatalogueInterface getResult()

Returns resulting catalogue ('result').

doc_Symfony
2016-10-28 06:14:12
Comments
Leave a Comment

Please login to continue.