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
mixed $value

Return Value

bool