private function visitTypeAnonymous(Type $type, $name, PHPClass $parentClass)
{
if (!isset($this->classes[spl_object_hash($type)])) {
$this->classes[spl_object_hash($type)]["class"] = $class = new PHPClass();
$class->setName($this->getNamingStrategy()->getAnonymousTypeName($type, $name));
$class->setNamespace($parentClass->getNamespace() . "\\" . $parentClass->getName());
$class->setDoc($type->getDoc());
$this->visitTypeBase($class, $type);
if ($type instanceof SimpleType) {
$this->classes[spl_object_hash($type)]["skip"] = true;
}
}
return $this->classes[spl_object_hash($type)]["class"];
}