protected function addType(parser\type $type) { $sNamespace = $type->getNamespace(); if (!array_key_exists($sNamespace, $this->aTypes)) { $this->aTypes[$sNamespace] = array(); } $this->aTypes[$sNamespace][$type->getName()] = $type; //$type->setNamespaces($this->getNS()); return $type; }