0 follower

Final Class Yiisoft\Data\Reader\Filter\GreaterThan

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

GreaterThan filter defines a criteria for ensuring field value is greater than a given value.

Method Details

Hide inherited methods

__construct() public method
public __construct( string $field, boolean|DateTimeInterface|float|integer|string|\Stringable $value ): mixed
$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 withValue( boolean|DateTimeInterface|float|integer|string|\Stringable $value ): Yiisoft\Data\Reader\Filter\GreaterThan
$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);
}