Skip to content

TypeTrait

Provides functionality to check values for specific types.

  • Full name: \Ramsey\Collection\Tool\TypeTrait

Methods

checkType

Returns true if value is of the specified type.

protected checkType(string $type, mixed $value): bool

Parameters:

Parameter Type Description
$type string The type to check the value against.
$value mixed The value to check.


Automatically generated on 2025-03-18