public static function getTypeForValue($value): string
    {
        if (is_object($value)) {
            if ($value instanceof Proxy) {
                $type = get_parent_class($value);
            } else {
                $type = get_class($value);
            }
        } else {
            $type = gettype($value);
        }
        return $type;
    }
public static function getTypeForValue($value): string
    {
        if (is_object($value)) {
            if ($value instanceof Proxy) {
                $type = get_parent_class($value);
            } else {
                $type = get_class($value);
            }
        } else {
            $type = gettype($value);
        }
        return $type;
    }
public static function getTypeForValue ( $ value ) : string { if ( is_object ( $ value ) ) { if ( $ value instanceof Proxy ) { $ type = get_parent_class ( $ value ) ; } else { $ type = get_class ( $ value ) ; } } else { $ type = gettype ( $ value ) ; } return $ type ; }
Return simple type or class for object

@param mixed $value
@return string
Return simple type or class for object