\Symfony\Component\Finder\ComparatorComparator

Comparator.

Summary

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

Properties

$target

$target : 

Type

$operator

$operator : 

Type

Methods

getTarget()

getTarget() : string

Gets the target value.

Returns

string —

The target value

setTarget()

setTarget(string  $target) 

Sets the target value.

Parameters

string $target

The target value

getOperator()

getOperator() : string

Gets the comparison operator.

Returns

string —

The operator

setOperator()

setOperator(string  $operator) 

Sets the comparison operator.

Parameters

string $operator

A valid operator

Throws

\InvalidArgumentException

test()

test(mixed  $test) : boolean

Tests against the target.

Parameters

mixed $test

A test value

Returns

boolean