final class ContentSubgraphVariationWeight implements JsonSerializable (View source)

internal  
 

The value object describing the weight of a variation edge between subgraphs A and B

The weight defines a set of specialization depths by dimension identifier like [ 'dimension1' => ContentDimensionValueSpecializationDepth(0), 'dimension2' => ContentDimensionValueSpecializationDepth(3) ], which means that the value in dimension1 is the same in both subgraphs, while subgraph B's value in dimension2 is a specialization of grade 3 of subgraph A's corresponding value.

Methods

__construct(array $value)

No description

bool
int
normalize(int $normalizationBase)

No description

array
jsonSerialize()

No description

string
toJson()

No description

Details

__construct(array $value)

No description

Parameters

array $value

ContentDimensionValueSpecializationDepth|null getWeightInDimension(ContentDimensionId $dimensionId)

No description

Parameters

ContentDimensionId $dimensionId

Return Value

ContentDimensionValueSpecializationDepth|null

bool canBeComparedTo(ContentSubgraphVariationWeight $other)

No description

Parameters

ContentSubgraphVariationWeight $other

Return Value

bool

int normalize(int $normalizationBase)

No description

Parameters

int $normalizationBase

Return Value

int

array jsonSerialize()

No description

Return Value

array

string toJson()

No description

Return Value

string