AbstractOperation

class AbstractOperation implements OperationInterface

Base catalogues binary operation class.

A catalogue binary operation performs operation on source (the left argument) and target (the right argument) catalogues.

Methods

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

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:04:18
Comments
Leave a Comment

Please login to continue.