0 follower

Final Class Yiisoft\Data\Reader\Filter\Between

InheritanceYiisoft\Data\Reader\Filter\Between
ImplementsYiisoft\Data\Reader\FilterInterface

Between filter defines a criteria, so the value of the field with a given name is between the minimal value and the maximal value.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\Data\Reader\Filter\Between

Property Details

Hide inherited properties

$field public property
public string $field null
$maxValue public property
$minValue public property

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $field, boolean|DateTimeInterface|float|integer|string|\Stringable $minValue, boolean|DateTimeInterface|float|integer|string|\Stringable $maxValue )
$field string

Name of the field to compare.

$minValue boolean|DateTimeInterface|float|integer|string|\Stringable

Minimal field value.

$maxValue boolean|DateTimeInterface|float|integer|string|\Stringable

Maximal field value.

                public function __construct(
    public readonly string $field,
    public readonly bool|DateTimeInterface|float|int|string|Stringable $minValue,
    public readonly bool|DateTimeInterface|float|int|string|Stringable $maxValue,
) {}