ApiPlatform\SchemaGenerator\AnnotationGenerator\PhpDocAnnotationGenerator::generateGetterAnnotations PHP 메소드

generateGetterAnnotations() 공개 메소드

public generateGetterAnnotations ( $className, $fieldName )
    public function generateGetterAnnotations($className, $fieldName)
    {
        return [sprintf('Gets %s.', $fieldName), '', sprintf('@return %s', $this->toPhpType($this->classes[$className]['fields'][$fieldName]))];
    }