public function setFigures($figures)
    {
        if (is_int($figures) || (gettype($figures) === 'string' && Format::isVariableRef($figures))) {
            $this->figures = $figures;
        } else {
            $msg = "The figures argument must be an integer or a variable reference, '" . $figures . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setFigures($figures)
    {
        if (is_int($figures) || (gettype($figures) === 'string' && Format::isVariableRef($figures))) {
            $this->figures = $figures;
        } else {
            $msg = "The figures argument must be an integer or a variable reference, '" . $figures . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setFigures ( $ figures ) { if ( is_int ( $ figures ) || ( gettype ( $ figures ) === 'string' && Format :: isVariableRef ( $ figures ) ) ) { $ this -> figures = $ figures ; } else { $ msg = "The figures argument must be an integer or a variable reference, '" . $ figures . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the number of figures to round to.

@param integer|string $figures An integer value or a variable reference.
@throws \InvalidArgumentException If $figures is not an integer nor a variable reference.
Set the number of figures to round to .