class Has extends Comparator (View source)

Check if a given key exists using dot-notation.

Ported and adapted from illuminate/collections helper Arr::has.

Methods

__construct(int|string $key)

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 Has
make(int|string $key)

No description

Details

__construct(int|string $key)

No description

Parameters

int|string $key

Key to search for.

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 Has make(int|string $key)

No description

Parameters

int|string $key

Key to search for.

Return Value

Has