Skip to content

Latest commit

 

History

History
144 lines (48 loc) · 926 Bytes

File metadata and controls

144 lines (48 loc) · 926 Bytes

Comparator

  • Full name: \Symfony\Component\Finder\Comparator\Comparator

Properties

target

private string $target

operator

private string $operator

Methods

__construct

public __construct(string $target, string $operator = '=='): mixed

Parameters:

Parameter Type Description
$target string
$operator string

getTarget

Gets the target value.

public getTarget(): string

getOperator

Gets the comparison operator.

public getOperator(): string

test

Tests against the target.

public test(mixed $test): bool

Parameters:

Parameter Type Description
$test mixed