Calculator
extends Calculator
in package
Class created by Core/Internal/PluginsDeploy
Table of Contents
Properties
- $mods : array<string|int, CalculatorModInterface>
Methods
- addMod() : void
- calculate() : bool
- calculateLine() : void
- getSubtotals() : array<string|int, mixed>
Properties
$mods
public
static array<string|int, CalculatorModInterface>
$mods
= []
Methods
addMod()
public
static addMod(CalculatorModInterface $mod) : void
Parameters
- $mod : CalculatorModInterface
calculate()
public
static calculate(BusinessDocument &$doc, array<string|int, mixed> &$lines, bool $save) : bool
Parameters
- $doc : BusinessDocument
- $lines : array<string|int, mixed>
- $save : bool
Return values
boolcalculateLine()
public
static calculateLine(BusinessDocument $doc, BusinessDocumentLine &$line) : void
Parameters
- $doc : BusinessDocument
- $line : BusinessDocumentLine
getSubtotals()
public
static getSubtotals(BusinessDocument $doc, array<string|int, BusinessDocumentLine> $lines) : array<string|int, mixed>
Parameters
- $doc : BusinessDocument
- $lines : array<string|int, BusinessDocumentLine>