class MultipleStateMarkingStore implements MarkingStoreInterface

MultipleStateMarkingStore stores the marking into a property of the subject.

This store deals with a "multiple state" Marking. It means a subject can be in many states at the same time.

Methods

__construct(string $property = 'marking', PropertyAccessorInterface $propertyAccessor = null)

No description

getMarking(object $subject)

Gets a Marking from a subject.

setMarking(object $subject, Marking $marking)

Sets a Marking to a subject.

string
getProperty()

No description

Details

at line 32
__construct(string $property = 'marking', PropertyAccessorInterface $propertyAccessor = null)

Parameters

string $property
PropertyAccessorInterface $propertyAccessor

at line 41
Marking getMarking(object $subject)

Gets a Marking from a subject.

Parameters

object $subject A subject

Return Value

Marking The marking

at line 49
setMarking(object $subject, Marking $marking)

Sets a Marking to a subject.

Parameters

object $subject A subject
Marking $marking A marking

at line 57
string getProperty()

Return Value

string