Set the numberRepeats attribute.

@param integer|string $numberRepeats An integer or a QTI variable reference.
@throws \InvalidArgumentException If $numberRepeats is not an integer nor a valid QTI variable reference.
182834
public function setNumberRepeats($numberRepeats)
    {
        if (is_int($numberRepeats) || (gettype($numberRepeats) === 'string' && Format::isVariableRef($numberRepeats))) {
            $this->numberRepeats = $numberRepeats;
        } else {
            $msg = "The numberRepeats argument must be an integer or a variable reference, '" . gettype($numberRepeats) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
839876
public function setRequestPatterns(array $requestPatterns)
    {
        foreach ($requestPatterns as $requestPattern) {
            if (!$requestPattern instanceof RequestPatternInterface) {
                throw new \InvalidArgumentException(sprintf('Invalid request pattern passed to token of type "%s"', get_class($this)), 1327398366);
            }
        }
        $this->requestPatterns = $requestPatterns;
    }
129311
public function setAreaMapEntries(AreaMapEntryCollection $areaMapEntries)
    {
        if (count($areaMapEntries) >= 1) {
            $this->areaMapEntries = $areaMapEntries;
        } else {
            $msg = "An AreaMapping object must contain at least one AreaMapEntry object. none given.";
            throw new InvalidArgumentException($msg);
        }
    }
584118
protected function doMatch($actual = null)
    {
        if (isset($this->countable)) {
            $actual = $this->getCount();
        }

        if (!is_numeric($actual)) {
            throw new \InvalidArgumentException(get_class($this) . ' requires a numeric value');
        }

        return $this->matchNumeric($actual);
    }
164132
public function setMaxOccurances($num)
    {
        if(is_integer($num) === false){
            throw new GeneratorException('Number must be an integer');
        }
        
        $this[self::REPEAT_MAX_INDEX] = $num;
        
    }
772959
public function setNumTotal($total)
    {
        if (!is_numeric($total)) {
            throw new InvalidArgumentException(
                'Total Number must be numeric.'
            );
        }

        $total = (int)$total;
        if ($total < 0) {
            throw new InvalidArgumentException(
                'Total Number must be greater than zero.'
            );
        }

        $this->numTotal = $total;

        return $this;
    }
69298
public function setRevisions(array $revisions)
    {
        $this->revisions = new ArrayCollection();

        /** @var \Rcm\Entity\Revision $revision */
        foreach ($revisions as $revision) {
            if (!$revision instanceof Revision) {
                throw new InvalidArgumentException(
                    "Invalid Revision passed in.  Unable to set array"
                );
            }

            $this->revisions->set($revision->getRevisionId(), $revision);
        }
    }
82511
public function setSpecification($specification = null)
    {
        if (empty($specification) || !is_numeric($specification) || $specification <= 0) {
            throw new UnspecifiedValidatorException(
                'The validator MultipleOf is being initialized without a valid number'
            );
        }
        $this->number = $specification;
    }
137684
public function setSecond($second)
    {
        if (Format::isIdentifier($second)) {
            $this->second = $second;
        } else {
            $msg = "'${second}' is an invalid QTI identifier.";
            throw new InvalidArgumentException($msg);
        }
    }
228325
public function setPhoneNumber(PhoneNumber $phoneNumber)
    {
        if (!is_a($phoneNumber, PhoneNumber::class, false))
        {
            throw new InvalidArgumentException("The phone number is not an instance of the PhoneNumber class.");
        }

        $this->phoneNumbers[$phoneNumber->getType()] = $phoneNumber;
    }
804061
public function setNumberOfMandatoryArguments( $number = 0 )
	{
		if( !is_int( $number ) )														//  no Integer given
			throw new InvalidArgument( 'No integer given' );							//  throw Exception
		if( $number === $this->numberArguments )										//  this Number is already set
			return FALSE;																//  do nothing
		$this->numberArguments	= $number;												//  set new Argument Number
		return TRUE;																	//  indicate Success
	}
973021
public function setNumber($no)
    {
        $this->info('Setting Buildnumber to:'.$no);
        $this->setProperty('build.number', $no);
        $this->no = $no;
    }
858823
public function setNormalMinimum($normalMinimum)
    {
        if (is_numeric($normalMinimum) || (is_bool($normalMinimum) && $normalMinimum === false)) {
            $this->normalMinimum = $normalMinimum;
        } else {
            $msg = "NormalMinimum must be a number or (boolean) false, '" . gettype($normalMinimum) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
1257108
public function setAmount($amount)
    {
      if(!is_int($amount) || $amount < 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid amount, must be a positive integer');

      $this->amount = $amount;
    }
994768
public function setEmbarkNumber($numeroTicket, $nlinea = 1){
            return chr(147).$this->cm('FS') . $nlinea . $this->cm('FS') . trim($numeroTicket);
        }
806179
public void setNumMap(String[] numMap) {
        ArgUtils.notEmpty(numMap, "numMap");

        if(numMap.length != 10) {
            throw new IllegalArgumentException("numMap length should be 10.");
        }

        this.numMap = numMap;
    }
226329
public function setValues($values)
    {
        if ((null !== $values) && (false === is_array($values))) {
            if (false === ($values instanceof ArrayAccess)) {
                throw new InvalidArgumentException(
                    'The value of $values is not an array or an instance of ArrayAccess.'
                );
            }
        }

        $this->values = $values;
    }