CalculatorModInterface
                
    
        
        
    
    Table of Contents
    
                        - 
    apply()
    
                                 : bool    
 
            - 
    calculate()
    
                                 : bool    
 
            - 
    calculateLine()
    
                                 : bool    
 
            - 
    clear()
    
                                 : bool    
 
            - 
    getSubtotals()
    
                                 : bool    
 
        
        
            
        
                    
    
        apply()
        
    
    
    
    
    public
                    apply(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
        
        Parameters
    
                    - 
                $doc
                : BusinessDocument
                            
 
            - 
                    
            
 
                    - 
                $lines
                : array<string|int, mixed>
                            
 
            - 
                    
            
 
            
    
        Return values
    bool
            —
        
    
                    
    
        calculate()
        
    
    
    
    
    public
                    calculate(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
        
        Parameters
    
                    - 
                $doc
                : BusinessDocument
                            
 
            - 
                    
            
 
                    - 
                $lines
                : array<string|int, mixed>
                            
 
            - 
                    
            
 
            
    
        Return values
    bool
            —
        
    
                    
    
        calculateLine()
        
    
    
    
    
    public
                    calculateLine(BusinessDocument $doc, BusinessDocumentLine &$line) : bool
        
        Parameters
    
                    - 
                $doc
                : BusinessDocument
                            
 
            - 
                    
            
 
                    - 
                $line
                : BusinessDocumentLine
                            
 
            - 
                    
            
 
            
    
        Return values
    bool
            —
        
    
                    
    
        clear()
        
    
    
    
    
    public
                    clear(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
        
        Parameters
    
                    - 
                $doc
                : BusinessDocument
                            
 
            - 
                    
            
 
                    - 
                $lines
                : array<string|int, mixed>
                            
 
            - 
                    
            
 
            
    
        Return values
    bool
            —
        
    
                    
    
        getSubtotals()
        
    
    
    
    
    public
                    getSubtotals(array<string|int, mixed> &$subtotals, BusinessDocument $doc, array<string|int, mixed> $lines) : bool
        
        Parameters
    
                    - 
                $subtotals
                : array<string|int, mixed>
                            
 
            - 
                    
            
 
                    - 
                $doc
                : BusinessDocument
                            
 
            - 
                    
            
 
                    - 
                $lines
                : array<string|int, mixed>
                            
 
            - 
                    
            
 
            
    
        Return values
    bool
            —