ContentSubgraphVariationWeight
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
ContentDimensionValueSpecializationDepth|null
getWeightInDimension(ContentDimensionId $dimensionId)
No description
bool
canBeComparedTo(ContentSubgraphVariationWeight $other)
No description
ContentSubgraphVariationWeight
decreaseBy(ContentSubgraphVariationWeight $other)
No description
int
normalize(int $normalizationBase)
No description
array
jsonSerialize()
No description
string
toJson()
No description