ApiPlatform\SchemaGenerator\TypesGenerator::generateConstantAnnotations PHP Method

generateConstantAnnotations() private method

Generates constant's annotations.
private generateConstantAnnotations ( array $annotationGenerators, string $className, string $constantName ) : array
$annotationGenerators array
$className string
$constantName string
return array
    private function generateConstantAnnotations(array $annotationGenerators, $className, $constantName)
    {
        $annotations = [];
        foreach ($annotationGenerators as $generator) {
            $annotations = array_merge($annotations, $generator->generateConstantAnnotations($className, $constantName));
        }
        return $annotations;
    }