public function setMin($min)
    {
        if (is_numeric($min) || Format::isVariableRef($min)) {
            $this->min = $min;
        } else {
            $msg = "'Min' must be a numeric value or a variableRef, '" . gettype($min) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }