You are here

public function UnitsMathematicalExpressionWrapper::setExpression in Units of Measurement 7.2

Set underlying mathematical expression.

Parameters

\UnitsMathematicalExpression $expression: Mathematical expression to set as underlying one

File

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

Class

UnitsMathematicalExpressionWrapper
Wrapper around "mathematical expression" objects for ease of db storage.

Code

public function setExpression(UnitsMathematicalExpression $expression) {
  $this->expression = $expression;
}