Свойство | Тип | Описание | |
---|---|---|---|
$code | string | ||
$description | string | ||
$physical | boolean | ||
$price | float | ||
$quantity | integer |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
getCode ( ) | ||
getDescription ( ) | ||
getPrice ( ) : float | ||
getQuantity ( ) | ||
isPhysical ( ) | ||
setCode ( string $code ) : bitpay\ItemInterface | ||
setDescription ( string $description ) : bitpay\ItemInterface | ||
setPhysical ( boolean $physical ) : bitpay\ItemInterface | ||
setPrice ( mixed $price ) : bitpay\ItemInterface | ||
setQuantity ( integer $quantity ) : bitpay\ItemInterface |
Метод | Описание | |
---|---|---|
checkPriceFormat ( string $price ) | Checks the new price to include BTC values with more than 6 decimals. |
protected checkPriceFormat ( string $price ) | ||
$price | string | The price value to check |
public setDescription ( string $description ) : bitpay\ItemInterface | ||
$description | string | |
Результат | bitpay\ItemInterface |
public setPhysical ( boolean $physical ) : bitpay\ItemInterface | ||
$physical | boolean | |
Результат | bitpay\ItemInterface |
public setQuantity ( integer $quantity ) : bitpay\ItemInterface | ||
$quantity | integer | |
Результат | bitpay\ItemInterface |