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

generateGetterAnnotations() public method

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