final class NodeDiscriminator implements JsonSerializable (View source)

The node discriminator value object

Represents the identity of a specific node in the content graph and is thus composed of

  • the content stream the node exists in
  • the node's aggregate's external id
  • the dimension space point the node originates in within its aggregate

Methods

fromShorthand(string $shorthand)

No description

fromNode(Node $node, ContentRepository $contentRepository)

No description

bool
equals(NodeDiscriminator $other)

No description

array
jsonSerialize()

No description

string
__toString()

No description

Details

static NodeDiscriminator fromShorthand(string $shorthand)

No description

Parameters

string $shorthand

Return Value

NodeDiscriminator

static NodeDiscriminator fromNode(Node $node, ContentRepository $contentRepository)

No description

Parameters

Node $node
ContentRepository $contentRepository

Return Value

NodeDiscriminator

bool equals(NodeDiscriminator $other)

No description

Parameters

NodeDiscriminator $other

Return Value

bool

array jsonSerialize()

No description

Return Value

array

string __toString()

No description

Return Value

string