protected function isSimpleType($type)
    {
        return $type == 'string'
            || $type == 'boolean' || $type == 'bool'
            || $type == 'integer' || $type == 'int'
            || $type == 'double' || $type == 'float'
            || $type == 'array' || $type == 'object';
    }
protected function isSimpleType($type)
    {
        return $type == 'string'
            || $type == 'boolean' || $type == 'bool'
            || $type == 'integer' || $type == 'int'
            || $type == 'double' || $type == 'float'
            || $type == 'array' || $type == 'object';
    }
protected function isSimpleType ( $ type ) { return $ type == 'string' || $ type == 'boolean' || $ type == 'bool' || $ type == 'integer' || $ type == 'int' || $ type == 'double' || $ type == 'float' || $ type == 'array' || $ type == 'object' ; }
Checks if the given type is a "simple type"

@param string $type type name from gettype()

@return boolean True if it is a simple PHP type

@see isFlatType()
Checks if the given type is a simple type