class Same extends Comparator (View source)

Checks if the value is identical to the given value. Uses strict comparison.

Methods

__construct(mixed $value)

No description

bool
__invoke(mixed $value)

Compare the input value against the comparator.

bool
check(mixed $value)

Compare the input value against the comparator.

static Same
make(mixed $value)

No description

Details

__construct(mixed $value)

No description

Parameters

mixed $value

The value to compare against

final bool __invoke(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

bool check(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

static Same make(mixed $value)

No description

Parameters

mixed $value

The value to compare against

Return Value

Same