PHP Class Bitpay\Item

Inheritance: implements bitpay\ItemInterface
Afficher le fichier Open project: bitpay/php-client Class Usage Examples

Protected Properties

Свойство Type Description
$code string
$description string
$physical boolean
$price float
$quantity integer

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
checkPriceFormat ( string $price ) Checks the new price to include BTC values with more than 6 decimals.

Method Details

__construct() public méthode

public __construct ( )

checkPriceFormat() protected méthode

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 méthode

public getCode ( )

getDescription() public méthode

public getDescription ( )

getPrice() public méthode

public getPrice ( ) : float
Résultat float

getQuantity() public méthode

public getQuantity ( )

isPhysical() public méthode

public isPhysical ( )

setCode() public méthode

public setCode ( string $code ) : bitpay\ItemInterface
$code string
Résultat bitpay\ItemInterface

setDescription() public méthode

public setDescription ( string $description ) : bitpay\ItemInterface
$description string
Résultat bitpay\ItemInterface

setPhysical() public méthode

public setPhysical ( boolean $physical ) : bitpay\ItemInterface
$physical boolean
Résultat bitpay\ItemInterface

setPrice() public méthode

public setPrice ( mixed $price ) : bitpay\ItemInterface
$price mixed A float, integer, or en_US formatted numeric string
Résultat bitpay\ItemInterface

setQuantity() public méthode

public setQuantity ( integer $quantity ) : bitpay\ItemInterface
$quantity integer
Résultat bitpay\ItemInterface

Property Details

$code protected_oe property

protected string $code
Résultat string

$description protected_oe property

protected string $description
Résultat string

$physical protected_oe property

protected bool $physical
Résultat boolean

$price protected_oe property

protected float $price
Résultat float

$quantity protected_oe property

protected int $quantity
Résultat integer