abstract class ComparisonRule extends MetadataValidation

Base class for all comparison (greater than/less than) validation rules.

Methods

jsonSerialize()

No description

getPropertyKeys()

Gets the keys for all the properties of this object.

__construct(string $type, mixed $value, bool $equals = false)

ComparisonRule constructor.

Details

jsonSerialize()

string[] getPropertyKeys()

Gets the keys for all the properties of this object.

Return Value

string[]

__construct(string $type, mixed $value, bool $equals = false)

ComparisonRule constructor.

Parameters

Name Type Description
$type string
$value mixed
$equals bool

Constants

GREATER_THAN

LESS_THAN