function CalculatorInterface::add
Returns the sum of all the provided parameters
Parameters
NumberInterface $augend The first addend (the integer being added to):
NumberInterface ...$addends The additional integers to a add to the augend:
Return value
NumberInterface The sum of all the parameters
1 method overrides CalculatorInterface::add()
- BrickMathCalculator::add in vendor/
ramsey/ uuid/ src/ Math/ BrickMathCalculator.php - Returns the sum of all the provided parameters
File
-
vendor/
ramsey/ uuid/ src/ Math/ CalculatorInterface.php, line 36
Class
- CalculatorInterface
- A calculator performs arithmetic operations on numbers
Namespace
Ramsey\Uuid\MathCode
public function add(NumberInterface $augend, NumberInterface ...$addends) : NumberInterface;