protected getTypeForContextValue ( mixed $contextValue ) : string | ||
$contextValue | mixed | |
return | string |
protected function getTypeForContextValue($contextValue)
{
if (is_object($contextValue)) {
if ($contextValue instanceof Proxy) {
$type = get_parent_class($contextValue);
} else {
$type = get_class($contextValue);
}
} else {
$type = gettype($contextValue);
}
return $type;
}