*
Sets the installment value and quantity
@param $quantity int
@param $value float
979344
public function setInstallment($quantity, $value = null, $noInterestInstallmentQuantity = null)
    {
        $param = $quantity;
        if (isset($param) && is_array($param) || is_object($param)) {
            $this->setQuantity($param['quantity']);
            $this->setValue($param['value']);
            $this->setNoInterestInstallmentQuantity($param["noInterestInstallmentQuantity"]);
        } else {
            $this->setQuantity($quantity);
            $this->setValue($value);
            $this->setNoInterestInstallmentQuantity($noInterestInstallmentQuantity);
        }
    }
657970
public function setScenario($value)
    {
        if(array_key_exists($value, $this->dataProperties->scenarios())) $this->dataProperties->setScenario($value);
        parent::setScenario($value); // TODO: Change the autogenerated stub
    }
1077635
protected function setValue($value)
    {
        if (!is_int($value)) {
            throw InvalidTypeException::fromMessageAndPrototype("Value must be an integer", static::prototype());
        }
        $this->value = $value;
    }
435458
public void setDeliveryCount(int value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setDeliveryCount", Integer.valueOf(value));
        deliveryCount = value;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setDeliveryCount");
    }
514478
public function setBuyer(\AgentSIB\Diadoc\Api\Proto\Invoicing\DiadocOrganizationInfo $value)
    {
        $this->Buyer = $value;
    }
482566
public function set($amount, $currency)
    {
        if ($this->isAvailable($currency)) {
            $this->base = $amount * $this->rates[$currency];
        } else {
            throw new RuntimeException(sprintf(
                'Can not set main rate "%s" that do not belong to initial collection of rates', $currency
            ));
        }
    }
1114409
public function setQuantity( $quantity )
	{
		if ( $quantity == $this->getQuantity() ) { return; }

		$this->_values['quantity'] = (int) $quantity;
		$this->setModified();
	}
503643
public void addValue(int... value) {
        /* no-op if disabled */
        if (!enabled.get())
            return;

        for (int v : value) {
            try {
                getCurrentBucket().data.addValue(v);
            } catch (Exception e) {
                logger.error("Failed to add value: " + v, e);
            }
        }
    }
1305237
public function setCarrier(\AgentSIB\Diadoc\Api\Proto\Invoicing\Organizations\ExtendedOrganizationInfo $value = null)
    {
        $this->Carrier = $value;
    }
1098246
public function setInstallment(
        $cardBrand,
        $quantity = null,
        $amount = null,
        $totalAmount = null,
        $interestFree = null
    ) {
        $param = $cardBrand;
        if (isset($param) && is_array($param) || is_object($param)) {
            if (isset($param->cardBrand)) {
                $this->setCardBrand($param->cardBrand);
            }
            if (isset($param->quantity)) {
                $this->setQuantity($param->quantity);
            }
            if (isset($param->installmentAmount)) {
                $this->setInstallmentAmount($param->installmentAmount);
            }
            if (isset($param->totalAmount)) {
                $this->setTotalAmount($param->totalAmount);
            }
            if (isset($param->interestFree)) {
                $this->setInterestFree($param->interestFree);
            }
        } else {
            if (isset($cardBrand)) {
                $this->setCardBrand($cardBrand);
            }
            if (isset($quantity)) {
                $this->setQuantity($quantity);
            }
            if (isset($amount)) {
                $this->setInstallmentAmount($amount);
            }
            if (isset($totalAmount)) {
                $this->setTotalAmount($totalAmount);
            }
            if (isset($interestFree)) {
                $this->setInterestFree($interestFree);
            }
        }
    }
1123339
public function setAmountsInc(\AgentSIB\Diadoc\Api\Proto\Invoicing\InvoiceItemAmountsDiff $value = null)
    {
        $this->AmountsInc = $value;
    }
269624
public function setSupplier(\AgentSIB\Diadoc\Api\Proto\Invoicing\OrganizationInfo $value = null)
    {
        $this->Supplier = $value;
    }
437631
protected function setPaymentsAttr(PaymentArray $value = null, $isDirty = true)
    {
        if (!is_null($value)) {
            $this->payments = $value;
            $this->setDirtyState($isDirty, 'payments');
        }
    }
454195
public function payment($amount, $installments = 1)
    {
        $payment = new Payment($amount, $installments);

        $this->setPayment($payment);

        return $payment;
    }
41138
public function setTotalsInc(\AgentSIB\Diadoc\Api\Proto\Invoicing\InvoiceTotalsDiff $value = null)
    {
        $this->TotalsInc = $value;
    }
552939
public function setAmount($value)
    {
        if ($value === null || $value === '') {
            $this->_amount = null;
        } else {
            if (!is_scalar($value)) {
                if (!is_object($value) || !method_exists($value, '__toString')) {
                    throw new InvalidPropertyValueTypeException(
                        'Invalid amount value type', 0, 'amount.value', $value
                    );
                }
                $value = (string)$value;
            }
            if (!is_numeric($value) || $value < 0.0) {
                throw new InvalidPropertyValueException(
                    'Invalid amount value "' . $value . '"', 0, 'amount.value', $value
                );
            } elseif ($value < 0.01) {
                $this->_amount = null;
            } else {
                $this->_amount = number_format($value, 2, '.', '');
            }
        }
    }
473172
private function setFraction($amount)
    {
        $doubleFraction = $amount * 100;
        $intFraction = ($this->round(abs($doubleFraction))) % 100;
        if($intFraction < 0)
            $intFraction = -$intFraction;
        $this->fraction = $intFraction;
    }