private function inferTypesForClass(Clazz $class) { $this->parser->setCurrentClassName($class->getName()); $this->parser->setImportedNamespaces($class->getImportedNamespaces()); foreach ($class->getConstants() as $constant) { $this->inferTypesForClassConstant($constant->getConstant()); } foreach ($class->getMethods() as $method) { $this->inferTypesForMethodOrFunction($method->getMethod(), $class); } foreach ($class->getProperties() as $property) { $this->inferTypesForProperty($property->getProperty()); } }