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

generateSetterAnnotations() public method

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