abstract class ComparisonRule extends MetadataValidation

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

Methods

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

ComparisonRule constructor.

Details

__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