trait ValueBuilderTrait

Trait ValueBuilderTrait

Methods

int(int $value)

Sets the integer value.

float(float $value)

Sets the float value.

numeric(int|float|mixed $value)

Sets the numeric value.

string(string $value)

Sets the string value.

stringArray(array $value)

Sets the value.

assetReference(string $publicId)

Sets the asset reference value.

Details

Expression int(int $value)

Sets the integer value.

Parameters

Name Type Description
$value int The value.

Return Value

Expression

Expression float(float $value)

Sets the float value.

Parameters

Name Type Description
$value float The value.

Return Value

Expression

Expression numeric(int|float|mixed $value)

Sets the numeric value.

Parameters

Name Type Description
$value int|float|mixed The value.

Return Value

Expression

Expression string(string $value)

Sets the string value.

Parameters

Name Type Description
$value string The value.

Return Value

Expression

Expression stringArray(array $value)

Sets the value.

Parameters

Name Type Description
$value array The array value.

Return Value

Expression

Expression assetReference(string $publicId)

Sets the asset reference value.

Parameters

Name Type Description
$publicId string The public ID of the file.

Return Value

Expression