0 follower

Final Class Yiisoft\Data\Reader\Filter\In

InheritanceYiisoft\Data\Reader\Filter\In
ImplementsYiisoft\Data\Reader\FilterInterface

In filter defines a criteria for ensuring field value matches one of the value provided.

Public Properties

Hide inherited 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

Hide inherited methods

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

Property Details

Hide inherited properties

$field public property
public string $field null
$values public property

Values to check against.

public boolean[]|float[]|integer[]|string[]|\Stringable[] $values null

Method Details

Hide inherited methods

__construct() public method

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);
}