DateComparator
extends Comparator
in package
DateCompare compiles date comparisons.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getOperator() : string
- Gets the comparison operator.
- getTarget() : string
- Gets the target value.
- test() : bool
- Tests against the target.
Properties
$operator
private
string
$operator
$target
private
string
$target
Methods
__construct()
public
__construct(string $test) : mixed
Parameters
- $test : string
-
A comparison string
Tags
getOperator()
Gets the comparison operator.
public
getOperator() : string
Return values
stringgetTarget()
Gets the target value.
public
getTarget() : string
Return values
stringtest()
Tests against the target.
public
test(mixed $test) : bool
Parameters
- $test : mixed