You are here

public function AbstractUnitsMathematicalOperator::__construct in Units of Measurement 7.2

UnitsOperatorMathematicalExpression constructor.

Parameters

array $operator: Definition of a cTools 'operator' plugin that represents the specific operator

\UnitsMathematicalExpression $operand1: Operand #1 for this mathematical expression

\UnitsMathematicalExpression $operand2: Operand #2 for this mathematical expression

1 call to AbstractUnitsMathematicalOperator::__construct()
UnitsMathematicalOperatorNonLinear::__construct in ./units.module
Constructor.
1 method overrides AbstractUnitsMathematicalOperator::__construct()
UnitsMathematicalOperatorNonLinear::__construct in ./units.module
Constructor.

File

./units.module, line 1323
Provide API for managing and converting units of measurement.

Class

AbstractUnitsMathematicalOperator
Abstract implementation of "mathematical operator" interface.

Code

public function __construct($operator, UnitsMathematicalExpression $operand1, UnitsMathematicalExpression $operand2) {
  $this->operator = $operator;
  $this->operand1 = $operand1;
  $this->operand2 = $operand2;
}