public function getXSDType($type)
    {
        if ($this->isXDSType($type)) {
            return self::$XSDTypes[strtolower($type)];
        } elseif ($type) {
            if (strpos($type, '[]')) {
                if ($this->isXDSType(str_replace('[]', '', $type))) {
                    return self::$XSDTypes['array'];
                }
            }

            return $this->addComplexType($type);
        } else {
            return null;
        }
    }
public function getXSDType($type)
    {
        if ($this->isXDSType($type)) {
            return self::$XSDTypes[strtolower($type)];
        } elseif ($type) {
            if (strpos($type, '[]')) {
                if ($this->isXDSType(str_replace('[]', '', $type))) {
                    return self::$XSDTypes['array'];
                }
            }

            return $this->addComplexType($type);
        } else {
            return null;
        }
    }
public function getXSDType ( $ type ) { if ( $ this -> isXDSType ( $ type ) ) { return self :: $ XSDTypes [ strtolower ( $ type ) ] ; } elseif ( $ type ) { if ( strpos ( $ type , '[]' ) ) { if ( $ this -> isXDSType ( str_replace ( '[]' , '' , $ type ) ) ) { return self :: $ XSDTypes [ 'array' ] ; } } return $ this -> addComplexType ( $ type ) ; } else { return null ; } }
Get the XSD Type from a PHP type.

@param string $type The type to get the XSD type from.
@return string
Get the XSD Type from a PHP type .