src/AnnotationGenerator/PhpDocAnnotationGenerator.php
public function generateConstantAnnotations(string $className, string $constantName): array
    {
        $resource = $this->classes[$className]['constants'][$constantName]['resource'];

        $annotations = $this->formatDoc((string) $resource->get('rdfs:comment'), true);
        $annotations[0] = sprintf('@var string %s', $annotations[0]);

        return $annotations;
    }
public function generateConstantAnnotations(string $className, string $constantName): array
    {
        $resource = $this->classes[$className]['constants'][$constantName]['resource'];

        $annotations = $this->formatDoc((string) $resource->get('rdfs:comment'), true);
        $annotations[0] = sprintf('@var string %s', $annotations[0]);

        return $annotations;
    }
{@inheritdoc}