class DateComparator extends Comparator

DateCompare compiles date comparisons.

Methods

string
getTarget()

Gets the target value.

setTarget(string $target)

Sets the target value.

string
getOperator()

Gets the comparison operator.

setOperator(string $operator)

Sets the comparison operator.

bool
test(mixed $test)

Tests against the target.

__construct(string $test)

No description

Details

in Comparator at line 29
string getTarget()

Gets the target value.

Return Value

string The target value

in Comparator at line 39
setTarget(string $target)

Sets the target value.

Parameters

string $target The target value

in Comparator at line 49
string getOperator()

Gets the comparison operator.

Return Value

string The operator

in Comparator at line 61
setOperator(string $operator)

Sets the comparison operator.

Parameters

string $operator A valid operator

Exceptions

InvalidArgumentException

in Comparator at line 81
bool test(mixed $test)

Tests against the target.

Parameters

mixed $test A test value

Return Value

bool

at line 26
__construct(string $test)

Parameters

string $test A comparison string

Exceptions

InvalidArgumentException If the test is not understood