\Symfony\Component\Finder\ComparatorDateComparator

DateCompare compiles date comparisons.

Summary

Methods
Properties
Constants
__construct()
getTarget()
setTarget()
getOperator()
setOperator()
test()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
doSetOperator()
$target
$operator
N/A

Properties

$target

$target

$operator

$operator

Methods

__construct()

__construct(string  $test) : mixed

Parameters

string $test

A comparison string

Throws

\InvalidArgumentException

If the test is not understood

Returns

mixed —

getTarget()

getTarget() : string

Gets the target value.

Returns

string —

setTarget()

setTarget(string  $target) : mixed

Parameters

string $target

Returns

mixed —

getOperator()

getOperator() : string

Gets the comparison operator.

Returns

string —

setOperator()

setOperator(string  $operator) : mixed

Sets the comparison operator.

Parameters

string $operator

Throws

\InvalidArgumentException

Returns

mixed —

test()

test(mixed  $test) : bool

Tests against the target.

Parameters

mixed $test

A test value

Returns

bool —

doSetOperator()

doSetOperator(string  $operator) : void

Parameters

string $operator