Set the number.

@param int $n

@return void
542959
public function setNum(int $n): void
    {
        $this->num     = $n;
        $this->numText = $n . ' ';
    }
215396
public function setMin($min)
    {
        if (is_int($min) || Format::isVariableRef($max)) {
            $this->min = $min;
        } else {
            $msg = "'Min' must be an integer, '" . gettype($min) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
1335873
public function setValue($size)
    {
        $this->size = $size;
        if (($this->multiplier !== 0) && ($this->size > -1)) {
            $this->sizelimit = $size * $this->multiplier;
        }
    }
263406
public function setMax($max)
    {
        
    	// Support .x notation.
    	if (!empty($max)){
        	$this->max = preg_replace('/x/u', '99999', $max);
    	}
    	else{
    		$this->max = null;
    	}
        
    }
1202827
public function setDn($username, $nosub = 0)
	{
		if ($this->users_dn == '' || $nosub)
		{
			$this->dn = $username;
		}
		elseif (\strlen($username))
		{
			$this->dn = str_replace('[username]', $username, $this->users_dn);
		}
		else
		{
			$this->dn = '';
		}
	}
590748
public function setMax(int $max): void{
        if($this->min > $max){
            throw new \InvalidArgumentException();
        }

        $this->max  = $max;
    }
655867
public function setNumber($value)
    {
        $name = $this->getName();
        $this->setCallerIdVariable('num', $value);
        $this->setCallerIdVariable('all', "$name<$value>");
    }
1068343
public void setChapterNumber(int number) {
    	numbers.set(numbers.size() - 1, Integer.valueOf(number));
    	Object s;
    	for (Iterator i = iterator(); i.hasNext(); ) {
    		s = i.next();
    		if (s instanceof Section) {
    			((Section)s).setChapterNumber(number);
    		}
    	}
    }
1233916
public function chop($n)
    {
        if ($n >= $this->size()) {
            $this->text = "";
            return;
        }

        $result = substr($this->text, 0, strlen($this->text) - $n);

        if ($result !== false) {
            $this->text = $result;
        }
    }
127979
public function setTelno($telno)
    {
        if (!is_string($telno)) {
            $telno = strval($telno);
        }
        $this->telno = $telno;
    }
1026010
public function setNumber($number)
    {
      if(!is_string($number) || strlen(trim($number)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid number, must be a non empty string');

      $this->number = $number;
    }
1075130
public function setParcelNumber($number)
    {
        $this->set(Config::T8904, (string)$number);
        $this->set(Config::T8973, (string)$number);

        return $this;
    }
550487
public function setNumber($number)
    {
        if (!is_numeric($number) && $number != null)
        {
            throw new InvalidArgumentException("Number is not numeric.");
        }
        $this->number = preg_replace('/\D/', '', $number);
    }
1341174
public function rewind($n)
    {
        $n = (int) $n;
        if ($n > $this->position) {
            throw new \InvalidArgumentException(sprintf('You try to rewind %d characters, but current position is %d',
                $n,
                $this->position
            ));
        }

        $this->position -= $n;
    }
963381
public function setPosition($n)
    {
        $n = (int) $n;
        if ($n > $this->getLength()) {
            throw new \OutOfBoundsException(sprintf('Require position out of bound'));
        }

        $this->position = $n;
    }
331643
public function setName($value)
    {
        $num = $this->getNumber();
        $this->setCallerIdVariable('name', $value);
        $this->setCallerIdVariable('all', "$value<$num>");
    }
1031865
public function setNumberOfShards($value)
    {
        assert(null === $value || is_numeric($value));
        $this->_numberOfShards = $value;
    }