Comparator\Comparator (Component\Finder)

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.

bool test(mixed $test)

Tests against the target.

Details

public string getTarget()

Gets the target value.

Return Value

string The target value

public setTarget(string $target)

Sets the target value.

Parameters

string $target The target value

public string getOperator()

Gets the comparison operator.

Return Value

string The operator

public setOperator(string $operator)

Sets the comparison operator.

Parameters

string $operator A valid operator

Exceptions

InvalidArgumentException

public bool test(mixed $test)

Tests against the target.

Parameters

mixed $test A test value

Return Value

bool

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Finder/Comparator/Comparator.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部