trait TypeTrait (View source)

Provides functionality to check values for specific types.

Methods

bool
checkType(string $type, mixed $value)

Returns true if value is of the specified type.

Details

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

Returns true if value is of the specified type.

Parameters

string $type The type to check the value against.
mixed $value The value to check.

Return Value

bool