- Full name:
\Symfony\Component\Finder\Comparator\Comparator
private string $target
private string $operator
public __construct(string $target, string $operator = '=='): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$target |
string | |
$operator |
string |
Gets the target value.
public getTarget(): string
Gets the comparison operator.
public getOperator(): string
Tests against the target.
public test(mixed $test): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$test |
mixed |