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

generateAdderAnnotations() public method

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