Final Class Yiisoft\Data\Reader\Filter\In
| Inheritance | Yiisoft\Data\Reader\Filter\In |
|---|---|
| Implements | Yiisoft\Data\Reader\FilterInterface |
In filter defines a criteria for ensuring field value matches one of the value provided.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $field | string | Yiisoft\Data\Reader\Filter\In | |
| $values | boolean[]|float[]|integer[]|string[]|\Stringable[] | Values to check against. | Yiisoft\Data\Reader\Filter\In |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Data\Reader\Filter\In |
Property Details
Method Details
| public mixed __construct ( string $field, boolean[]|float[]|integer[]|string[]|\Stringable[] $values ) | ||
| $field | string |
Name of the field to compare. |
| $values | boolean[]|float[]|integer[]|string[]|\Stringable[] |
Values to check against. |
public function __construct(
public readonly string $field,
/** @var bool[]|float[]|int[]|string[]|Stringable[] Values to check against. */
public readonly array $values,
) {
$this->assertValues($values);
}
Signup or Login in order to comment.