Set item quantity unit

@param $value
@return $this
@throws \Genesis\Exceptions\ErrorParameter
345293
public function setQuantityUnit($value)
    {
        if (!empty($value) && strlen($value) > 8) {
            throw new \Genesis\Exceptions\ErrorParameter(
                sprintf(
                    'Item parameter quantity_unit is set to %s, but expected to be string with max length 8 characters',
                    $value
                )
            );
        }

        $this->quantity_unit = $value;
        return $this;
    }
280998
public function setOrderItems($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderItems']['FieldValue'] = $value;
        return $this;
    }
30320
public function setSmsParam($value)
    {
        if (is_array($value)) {
            $value = Support::jsonStr($value);
        }

        $this->params['sms_param'] = $value;

        return $this;
    }
100020
public function setCurrency($value)
    {
        $this->amount->setCurrency($value);
        foreach ($this->receipt->getItems() as $item) {
            $item->getPrice()->setCurrency($value);
        }

        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
754200
public function set($item, $value = null)
    {
        if (is_array($item)) {
            foreach($item as $key => $val){
                $this->custom[$key] = $val;
            }
        } else {
            $this->custom[$item] = $value;
        }
        return $this;
    }
1367255
public function setTaxes($value)
    {
        /** @var Item $item */
        foreach ($this->getItems() as $item) {
            $item->setTaxes($value);
        }

        return $this;
    }
266386
public function setCustom($dimension, $value = null)
    {
        if ($value === null && is_array($dimension)) {
            $params = json_encode($dimension);
            $trackingCode = "ga('set', $params);";
        } else {
            $trackingCode = "ga('set', '$dimension', '$value');";
        }

        $this->trackCustom($trackingCode);

        return $this;
    }
1024246
public function setValue($value): AbstractPart
    {
        if ($value instanceof AbstractPart) {
            $value = $value->getValue();
        }

        $this->value = $value;

        return $this;
    }
1129994
public function setItems(array $value) {
    if (isset($value[0]) &&
        is_object($value[0]) &&
        !$value[0] instanceof GalleryItem
    ) {
      $this->triggerError('Object not of type GalleryItem');
    }
    else {
      $this->items = $value;
    }
    return $this;
  }
990697
public function setSentCountActual($value = null)
    {
        if ($value === null || $value === '' || $value === false) {
            $this->sentCountActual = null;
        } else {
            $this->sentCountActual = (int) $value;
        }

        return $this;
    }
1164945
protected function setValue($value)
    {
        if (is_string($value)) {
            $value = trim($value);
            if ($value !== "") {
                $this->value = $value;
            } else {
                throw new \InvalidArgumentException("Invalid value for argument 'value' given.");
            }
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($value) . "' for argument 'value' given. String expected."
            );
        }

        return $this;
    }
1186858
public final function reduce( int $value = 1 ) : Size
   {

      $this->triggerFixedErrorByNeed( 'reduce' );
      
      $this->_width  = $this->_width - $value;
      $this->_height = $this->_height - $value;

      return $this;

   }
1101723
public final function resize( int $value = 1 ) : Size
   {

      $this->triggerFixedErrorByNeed( 'resize' );

      $this->_width  = $this->_width + $value;
      $this->_height = $this->_height + $value;

      return $this;

   }
1250642
public function setCoreLocale($value)
    {
        $this->setFieldName('locale');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1283635
public function setValue($value, $data = null)
    {
        if (!$value) {
            $value = 0.00;
        }
        $this->value = DBCurrency::config()->uninherited('currency_symbol')
            . number_format((double)preg_replace('/[^0-9.\-]/', '', $value), 2);
        return $this;
    }
238018
public function setValue($value)
    {
        if (is_int($value) || is_float($value)) {
            $this->value = $value;
        } else {
            $msg = "The value of a Weight must be a valid integer or float value, '" . gettype($value) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }