W3cubDocs

/Symfony 4.1

MarkingStoreInterface

interface MarkingStoreInterface

MarkingStoreInterface is the interface between the Workflow Component and a plain old PHP object: the subject.

It converts the Marking into something understandable by the subject and vice versa.

Methods

Marking getMarking(object $subject)

Gets a Marking from a subject.

setMarking(object $subject, Marking $marking)

Sets a Marking to a subject.

Details

Marking getMarking(object $subject)

Gets a Marking from a subject.

Parameters

object $subject A subject

Return Value

Marking The marking

setMarking(object $subject, Marking $marking)

Sets a Marking to a subject.

Parameters

object $subject A subject
Marking $marking A marking

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Workflow/MarkingStore/MarkingStoreInterface.html