class ContentDimensionValue (View source)

The content dimension value domain model

Properties

protected string $value
protected ContentDimensionValue $fallback
protected array $variants
protected int $depth

Methods

__construct(string $value, ContentDimensionValue $fallback = null)

No description

void
registerVariant(ContentDimensionValue $variant)

No description

array
getVariants()

No description

getFallback()

No description

string
getValue()

No description

int
getDepth()

No description

int
calculateFallbackDepth(ContentDimensionValue $fallback)

No description

string
__toString()

No description

Details

__construct(string $value, ContentDimensionValue $fallback = null)

No description

Parameters

string $value
ContentDimensionValue $fallback

void registerVariant(ContentDimensionValue $variant)

No description

Parameters

ContentDimensionValue $variant

Return Value

void

array getVariants()

No description

Return Value

array

ContentDimensionValue|null getFallback()

No description

Return Value

ContentDimensionValue|null

string getValue()

No description

Return Value

string

int getDepth()

No description

Return Value

int

int calculateFallbackDepth(ContentDimensionValue $fallback)

No description

Parameters

ContentDimensionValue $fallback

Return Value

int

Exceptions

InvalidFallbackException

string __toString()

No description

Return Value

string