Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CalculatorInterface.php

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\Math

Code

public function add(NumberInterface $augend, NumberInterface ...$addends) : NumberInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal