Documentation

Comparator
in package

Comparator.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$operator  : mixed
$target  : mixed
getOperator()  : string
Gets the comparison operator.
getTarget()  : string
Gets the target value.
setOperator()  : mixed
Sets the comparison operator.
setTarget()  : mixed
test()  : bool
Tests against the target.

Properties

Methods

getOperator()

Gets the comparison operator.

public getOperator() : string
Return values
string

The operator

getTarget()

Gets the target value.

public getTarget() : string
Return values
string

The target value

setOperator()

Sets the comparison operator.

public setOperator(string $operator) : mixed
Parameters
$operator : string
Tags
throws
InvalidArgumentException
Return values
mixed

setTarget()

public setTarget(string $target) : mixed
Parameters
$target : string
Return values
mixed

test()

Tests against the target.

public test(mixed $test) : bool
Parameters
$test : mixed

A test value

Return values
bool

Search results