Symfony2 API
Class

Symfony\Component\Finder\Comparator\Comparator

class Comparator

Comparator.

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.

Boolean test(mixed $test)

Tests against the target.

Details

at line 29
public string getTarget()

Gets the target value.

Return Value

string The target value

at line 39
public setTarget(string $target)

Sets the target value.

Parameters

string $target The target value

at line 49
public string getOperator()

Gets the comparison operator.

Return Value

string The operator

at line 61
public setOperator(string $operator)

Sets the comparison operator.

Parameters

string $operator A valid operator

Exceptions

InvalidArgumentException

at line 81
public Boolean test(mixed $test)

Tests against the target.

Parameters

mixed $test A test value

Return Value

Boolean