ApiPlatform\SchemaGenerator\AnnotationGenerator\PhpDocAnnotationGenerator::generateConstantAnnotations PHP Method

generateConstantAnnotations() public method

public generateConstantAnnotations ( $className, $constantName )
    public function generateConstantAnnotations($className, $constantName)
    {
        $resource = $this->classes[$className]['constants'][$constantName]['resource'];
        $annotations = $this->formatDoc($resource->get('rdfs:comment'), true);
        $annotations[0] = sprintf('@var string %s', $annotations[0]);
        return $annotations;
    }