PHP Класс Bitpay\Item

Наследование: implements bitpay\ItemInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Описание методов

__construct() публичный Метод

public __construct ( )

checkPriceFormat() защищенный Метод

Checks the new price to include BTC values with more than 6 decimals.
protected checkPriceFormat ( string $price )
$price string The price value to check

getCode() публичный Метод

public getCode ( )

getDescription() публичный Метод

public getDescription ( )

getPrice() публичный Метод

public getPrice ( ) : float
Результат float

getQuantity() публичный Метод

public getQuantity ( )

isPhysical() публичный Метод

public isPhysical ( )

setCode() публичный Метод

public setCode ( string $code ) : bitpay\ItemInterface
$code string
Результат bitpay\ItemInterface

setDescription() публичный Метод

public setDescription ( string $description ) : bitpay\ItemInterface
$description string
Результат bitpay\ItemInterface

setPhysical() публичный Метод

public setPhysical ( boolean $physical ) : bitpay\ItemInterface
$physical boolean
Результат bitpay\ItemInterface

setPrice() публичный Метод

public setPrice ( mixed $price ) : bitpay\ItemInterface
$price mixed A float, integer, or en_US formatted numeric string
Результат bitpay\ItemInterface

setQuantity() публичный Метод

public setQuantity ( integer $quantity ) : bitpay\ItemInterface
$quantity integer
Результат bitpay\ItemInterface

Описание свойств

$code защищенное свойство

protected string $code
Результат string

$description защищенное свойство

protected string $description
Результат string

$physical защищенное свойство

protected bool $physical
Результат boolean

$price защищенное свойство

protected float $price
Результат float

$quantity защищенное свойство

protected int $quantity
Результат integer