Final Class Yiisoft\Data\Reader\Filter\Between
| Inheritance | Yiisoft\Data\Reader\Filter\Between |
|---|---|
| Implements | Yiisoft\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
| Property | Type | Description | Defined By |
|---|---|---|---|
| $field | string | Yiisoft\Data\Reader\Filter\Between | |
| $maxValue | boolean|DateTimeInterface|float|integer|string|\Stringable | Yiisoft\Data\Reader\Filter\Between | |
| $minValue | boolean|DateTimeInterface|float|integer|string|\Stringable | Yiisoft\Data\Reader\Filter\Between |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Data\Reader\Filter\Between |
Property Details
Method Details
| 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,
) {}
Signup or Login in order to comment.