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 Properties

Hide inherited properties

Property Type Description Defined By
$field string Yiisoft\Data\Reader\Filter\Between
$maxValue bool|\DateTimeInterface|float|int|string|\Stringable Yiisoft\Data\Reader\Filter\Between
$minValue bool|\DateTimeInterface|float|int|string|\Stringable Yiisoft\Data\Reader\Filter\Between

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
public bool|\DateTimeInterface|float|int|string|\Stringable $maxValue null
$minValue public property
public bool|\DateTimeInterface|float|int|string|\Stringable $minValue null

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,
) {}