0 follower

Final Class Yiisoft\Data\Reader\Filter\GreaterThanOrEqual

InheritanceYiisoft\Data\Reader\Filter\GreaterThanOrEqual » Yiisoft\Data\Reader\Filter\Compare
ImplementsYiisoft\Data\Reader\FilterInterface

GreaterThanOrEqual filter defines a criteria for ensuring field value is greater than or equal to a given value.

Method Details

Hide inherited methods

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

Name of the field to compare.

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

Value to compare to.

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

            
withValue() public method
public Yiisoft\Data\Reader\Filter\GreaterThanOrEqual withValue ( boolean|DateTimeInterface|float|integer|string|\Stringable $value )
$value boolean|DateTimeInterface|float|integer|string|\Stringable

Value to compare to.

                final public function withValue(bool|DateTimeInterface|float|int|string|Stringable $value): static
{
    return new static($this->field, $value);
}