Condition checking that the value of a property is the same as a passed value.

 Methods

{@inheritdoc}

__clone() 

Create a new instance.

__construct(string $propertyName, mixed $propertyValue, bool $strict) 

Parameters

$propertyName

string

The name of the property.

$propertyValue

mixed

The value of the property to match.

$strict

bool

Flag if the comparison shall be strict (type safe).

Retrieve the property name.

getPropertyName() : string

Returns

string

Retrieve the property value to match.

getPropertyValue() : mixed

Returns

mixed

Retrieve the flag if the comparison shall be strict (type safe).

getStrict() : boolean
SuppressWarnings (PHPMD.BooleanGetMethodName)

Returns

boolean

{@inheritdoc}

match(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend) 

Parameters

$model

$input

$property

$legend

Set the flag if the comparison shall be strict (type safe).

setStrict(boolean $strict) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyValueCondition

 Properties

 

The property name.

$propertyName : string
 

The expected property value.

$propertyValue : mixed
 

Use strict compare mode.

$strict : bool