AbstractDimensionSpacePoint
abstract class AbstractDimensionSpacePoint implements JsonSerializable (View source)
A point in the dimension space with coordinates DimensionName => DimensionValue.
E.g.: ["language" => "es", "country" => "ar"]
Methods
No description
No description
No description
A variant VarA is a "Direct Variant in Dimension Dim" of another variant VarB, if VarA and VarB are sharing all dimension values except in "Dim", AND they have differing dimension values in "Dim". Thus, VarA and VarB only vary in the given "Dim".
Equals check (as opposed to === same check, which is usually the preferred variant) Compares two hashes, since the DSPs themselves might be of different classes
No description
No description
Details
protected
__construct(array $coordinates, string $hash)
No description
final static protected string
hashCoordinates(array $coordinates)
No description
final static protected void
validateCoordinates(array $coordinates)
No description
final bool
isDirectVariantInDimension(AbstractDimensionSpacePoint $other, ContentDimensionId $contentDimensionId)
A variant VarA is a "Direct Variant in Dimension Dim" of another variant VarB, if VarA and VarB are sharing all dimension values except in "Dim", AND they have differing dimension values in "Dim". Thus, VarA and VarB only vary in the given "Dim".
It does not say anything about how VarA and VarB relate (if it is specialization, peer or generalization).
final bool
hasCoordinate(ContentDimensionId $dimensionId)
No description
final string|null
getCoordinate(ContentDimensionId $dimensionId)
No description
final bool
equals(AbstractDimensionSpacePoint $other)
Equals check (as opposed to === same check, which is usually the preferred variant) Compares two hashes, since the DSPs themselves might be of different classes
final array
toLegacyDimensionArray()
deprecated
deprecated
No description
final array
jsonSerialize()
No description
final string
toJson()
No description