protected function getObjectTypeData($classType)
{
$classType = $this->normalizeClassName($classType);
$data = isset($this->classTypeMap[$classType]) ? $this->classTypeMap[$classType] : [];
foreach (['methods', 'fields', 'static-fields'] as $property) {
if (!isset($data[$property])) {
$data[$property] = [];
}
foreach ($data[$property] as &$returnType) {
if ($returnType === self::TYPE_SELF) {
$returnType = TypeId::getObject($classType);
}
}
}
return $data;
}