protected function parseType($type)
{
if (!$this->isStructDefined($type)) {
$cleanType = self::cleanType($type);
$typeDef = explode(' ', $cleanType);
if (array_key_exists(1, $typeDef) && !empty($typeDef)) {
$structName = $typeDef[1];
if ($typeDef[0] !== self::STRUCT_DECLARATION) {
$this->getGenerator()->getStructs()->addVirtualStruct($this->getGenerator(), $structName);
} else {
$this->parseComplexStruct($typeDef);
}
}
$this->structHasBeenDefined($type);
}
}