Documentation

Comparator
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

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

Properties

Methods

__construct()

public __construct(string $target[, string $operator = '==' ]) : mixed
Parameters
$target : string
$operator : string = '=='
Return values
mixed

getOperator()

Gets the comparison operator.

public getOperator() : string
Return values
string

getTarget()

Gets the target value.

public getTarget() : string
Return values
string

test()

Tests against the target.

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

Search results