src/XSD2PHP/src/com/mikebevz/xsd2php/Wsdl.php
private function getTypeName($type)
    {

        //@todo Check must be performed against PHP data types not XMLSchema
        if (!in_array($type, $this->basicTypes)) {
            if (!class_exists($type, CoreConstants::USE_AUTOLOADER)) {
                throw new \RuntimeException("Cannot find class ".$type);
            }

            $typeNamespace = $this->getClassNamespace($type);
            $typeName      = $this->getShortName($type);
            $nsCode        = $this->getNsCode($typeNamespace, true);
            $this->addImportToSchema($typeNamespace, $nsCode);
            return $nsCode.":".$typeName;
        } else {
            return $this->xmlSchemaPreffix.":".$type;
        }
    }
private function getTypeName($type)
    {

        //@todo Check must be performed against PHP data types not XMLSchema
        if (!in_array($type, $this->basicTypes)) {
            if (!class_exists($type, CoreConstants::USE_AUTOLOADER)) {
                throw new \RuntimeException("Cannot find class ".$type);
            }

            $typeNamespace = $this->getClassNamespace($type);
            $typeName      = $this->getShortName($type);
            $nsCode        = $this->getNsCode($typeNamespace, true);
            $this->addImportToSchema($typeNamespace, $nsCode);
            return $nsCode.":".$typeName;
        } else {
            return $this->xmlSchemaPreffix.":".$type;
        }
    }
Get QName style for given type
@param string $type Type name

@return string
@throws RuntimeException If class of type cannot be found