class InterDimensionalFallbackGraph (View source)

The inter dimensional fallback graph domain model Represents the fallback mechanism between content subgraphs

Properties

protected array $subgraphs
protected array|ContentDimension[] $prioritizedContentDimensions

Methods

__construct(array $prioritizedContentDimensions)

No description

createContentSubgraph(array $dimensionValues)

No description

connectSubgraphs(ContentSubgraph $variant, ContentSubgraph $fallback)

No description

array
calculateFallbackWeight(ContentSubgraph $variant, ContentSubgraph $fallback)

No description

int
normalizeWeight(array $weight)

No description

int
getPrimaryFallback(ContentSubgraph $contentSubgraph)

No description

array
getSubgraphs()

No description

getSubgraph(string $identityHash)

No description

Details

__construct(array $prioritizedContentDimensions)

No description

Parameters

array $prioritizedContentDimensions

ContentSubgraph createContentSubgraph(array $dimensionValues)

No description

Parameters

array $dimensionValues

Return Value

ContentSubgraph

VariationEdge connectSubgraphs(ContentSubgraph $variant, ContentSubgraph $fallback)

No description

Parameters

ContentSubgraph $variant
ContentSubgraph $fallback

Return Value

VariationEdge

Exceptions

InvalidFallbackException

array calculateFallbackWeight(ContentSubgraph $variant, ContentSubgraph $fallback)

No description

Parameters

ContentSubgraph $variant
ContentSubgraph $fallback

Return Value

array

int normalizeWeight(array $weight)

No description

Parameters

array $weight

Return Value

int

int determineWeightNormalizationBase()

No description

Return Value

int

ContentSubgraph|null getPrimaryFallback(ContentSubgraph $contentSubgraph)

No description

Parameters

ContentSubgraph $contentSubgraph

Return Value

ContentSubgraph|null

array getSubgraphs()

No description

Return Value

array

ContentSubgraph|null getSubgraph(string $identityHash)

No description

Parameters

string $identityHash

Return Value

ContentSubgraph|null