Shortcut for adding multiples

@param string $value Value to be multiples

@return $this
425455
public function multiple($value)
    {
        $value = $this->sanitise($value);

        switch (substr($value, -1)) {
            case '*':
            case '+':
                break;
            default:
                $value .= '+';
        }

        return $this->add($value);
    }
526882
public function setDiscounts($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $discountParameters) {
                $bag->add(new Discount($discountParameters));
            }
            $value = $bag;
        }
        return $this->setParameter('discounts', $value);
    }
1280361
public function multiply($value)
    {
        if (!$value instanceof self) {
            $value = new self($value, $this->getScale(), false);
        }

        $newValue = bcmul($this->getValue(), $value->getValue(), $this->getScale());

        return $this->assignValue($newValue);
    }
752309
public function addClass($value)
    {
        if (!isset($this->attributeList['class']) || is_null($this->attributeList['class'])) {
            $this->attributeList['class'] = array();
        }
        $this->attributeList['class'][] = $value;
        return $this;
    }
476625
function add($name, $value) {
		if (isset($this->metadata[$name]) && ! is_array($this->metadata[$name])) {
			$this->metadata[$name] = [ $this->metadata[$name] ];
		}

		$this->metadata[$name][] = $value;

		return $this;
	}
965332
public function setMessages($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['Messages']['FieldValue'] = $value;
        return $this;
    }
803235
public function add($value, array $attributes = null)
        {
            $cell = $value;
            if (is_string($value)) {
                $cell = new Cell($value, $attributes);
            }

            $this->_cells[] = $cell;

            return $this;
        }
1211550
public function setValue( $value ) {
		if ( strtolower( $this->tag ) === 'textarea' ) {
			$this->clearContent();
			$this->appendContent( $value );
		} else {
			$this->setAttributes( [ 'value' => $value ] );
		}
		return $this;
	}
221739
public function append($name, $value)
    {
        if (is_array($this->_data[$name])) {
            $this->_data[$name][] = $value;
        } else {
            $this->_data[$name] .= $value;
        }

        return $this;
    }
283217
public function with_value( $value ) {
		if ( $this->value === $value ) {
			return $this;
		}

		$cloned_token        = clone $this;
		$cloned_token->value = $value;

		return $cloned_token;
	}
504651
public function addWeekdays($value)
    {
        $direction = $value > 0 ? 1 : -1;
        $value = abs($value);

        while ($value > 0) {
            $this->addDays($direction);

            while ($this->isWeekend()) {
                $this->addDays($direction);
            }

            $value--;
        }

        return $this;
    }
1349143
public function addClass(string $value) : self
    {
        $class = trim($this->attributes['class']);
        $this->attributes['class'] = trim($class . ' ' . trim($value));
        return $this;
    }
521042
public function addDiscount($value)
    {
        $this->data->amount->subtotals->discount -= $this->convertAmount($value);

        return $this;
    }
905253
public function setTags($value)
    {
        if (!is_array($value)) {
            $value = [$value];
        }

        $this->values['tags'] = implode(',', $value);

        return $this;
    }
698425
protected function multiplyScalar($value)
    {
        for ($row = 0; $row < $this->rows; ++$row) {
            for ($column = 0; $column < $this->columns; ++$column) {
                $this->matrix[$row][$column] *= $value;
            }
        }

        return $this;
    }
470049
public function setPaymentMethodDetails($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['PaymentMethodDetails']['FieldValue'] = $value;
        return $this;
    }
1230169
public function addDays($value) {
        
        $dayToSet = (int) $this->day + $value;
        
        return $this->setDate($this->year, $this->month, $dayToSet);
    }