Multiply current instance given number of times

@param float|int $factor

@return $this
194642
public function times($factor)
    {
        if ($factor < 0) {
            $this->invert = $this->invert ? 0 : 1;
            $factor = -$factor;
        }

        $this->years = (int) round($this->years * $factor);
        $this->months = (int) round($this->months * $factor);
        $this->dayz = (int) round($this->dayz * $factor);
        $this->hours = (int) round($this->hours * $factor);
        $this->minutes = (int) round($this->minutes * $factor);
        $this->seconds = (int) round($this->seconds * $factor);
        $this->microseconds = (int) round($this->microseconds * $factor);

        return $this;
    }
850490
def Scale(self, factor):
        
        new = self.Copy()
        new.xs = [x * factor for x in self.xs]
        return new
1128792
public function multipliedBy(int $multiplicand) : Duration
    {
        if ($multiplicand === 1) {
            return $this;
        }

        $seconds = $this->seconds * $multiplicand;
        $totalnanos = $this->nanos * $multiplicand;

        return Duration::ofSeconds($seconds, $totalnanos);
    }
355858
public function multiply(Fraction $fraction)
    {
        $numerator = $this->getNumerator() * $fraction->getNumerator();
        $denominator = $this->getDenominator() * $fraction->getDenominator();

        return new static($numerator, $denominator);
    }
250129
final public function scaleImage($factor = 1)
	{
		// Scaling by a factor of 1 produces no changes, so do not scale if it is 1
		if (is_numeric($factor) and $factor !== 1) {
			$new_width  = round(abs($factor * $this->imageWidth()));
			$new_height = round(abs($factor * $this->imageHeight()));
			$this->_image_handle = imagescale($this->_image_handle, $new_width, $new_height);
		}

		return $this;
	}
600027
public function setAmount($amount)
    {
        $effects = $this->unserializeEffects($this->getSerializedEffects());
        $effects['amount'] = \floatval($amount);
        $this->setEffects($effects);

        return $this;
    }
473028
public function setUsage($usage)
    {
        if (is_int($usage)) {
            $this->validate($usage, $this->usages);
        } else {
            $this->validate($usage, array_keys($this->usages));
            $usage = $this->usages[$usage];
        }

        $this->usage = $usage;

        return $this;
    }
1114297
public function add($filter)
    {
        $index = $this->indexOf($filter);

        if ($index === -1) {
            $this->children[] = $filter;
            $filter->setBuilder($this->builder)->setParent($this);
        }

        return $this;
    }
86798
public function scaleX(Point $center, $factor)
	{
		$this->x = ($this->x - $center->x) * $factor + $center->x;
		return $this;
	}
1279483
public function setAmountMax(float $amountMax): self
    {
        $this->amountMax = (int) ($amountMax * self::FACTOR_AMOUNT_MAX);
        return $this;
    }
331278
public function incrementMajor($amount = 1)
    {
        $this->major += $amount;
        $this->minor = 0;
        $this->patch = 0;

        return $this;
    }
543833
public function multi()
    {
        if ($this->state->check(MultiExecState::INITIALIZED | MultiExecState::CAS)) {
            $this->state->unflag(MultiExecState::CAS);
            $this->call('MULTI');
        } else {
            $this->initialize();
        }

        return $this;
    }
1221546
public function setAmount(float $amount): self
    {
        $this->amount = (int) ($amount * self::FACTOR_AMOUNT);
        return $this;
    }
1312261
public function multiply($variable)
    {
        return $this->wrap(new Operator\Multiplication($this, $this->asVariable($variable)));
    }
886649
public function reScale($factor=2) {
        $newbuckets = array();
        $newscale = $this->scale * $factor;
        $newstart = (int) ($this->timestart / $factor);
        foreach($this->buckets as $k => $v) {
            $oldtime = ($this->timestart + $k) * $this->scale;
            $newposition = (int) ($oldtime / $newscale);
            $delta = $newposition - $newstart;
            if ( isset($newbuckets[$delta]) ) {
                $newbuckets[$delta] += $v;
            } else {
                $newbuckets[$delta] = $v;
            }
        }
        return $newbuckets;
    }
270236
public function scale(array $options = []) {
		if (empty($options['factor'])) {
			throw new \InvalidArgumentException(__d('imagine', 'You must pass a factor value!'));
		}

		$imageSize = $this->getImageSize();
		$width = $imageSize[0];
		$height = $imageSize[1];

		$Box = new Box($width, $height);
		$Box = $Box->scale($options['factor']);
		$this->_image->resize($Box);
		return $this;
	}
967211
public function multiply(string $field, $value)
    {
        $this->update();
        $this->mongoDbUpdate['$mul'][$field] = $value;

        return $this;
    }