프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |