BitPay PHP SDK

Item
in package

Tags
see
https://developer.bitpay.com/reference/bills

REST API Bills

author

BitPay Integrations integrations@bitpay.com

license

http://www.opensource.org/licenses/mit-license.php MIT

Attributes
#[AllowDynamicProperties]

Table of Contents

Properties

$description  : string|null
$id  : string|null
$price  : float|null
$quantity  : int|null

Methods

__construct()  : mixed
createFromArray()  : Item
getDescription()  : string|null
Gets Line item description
getId()  : string|null
Gets id.
getPrice()  : float|null
Gets Line item unit price for the corresponding currency
getQuantity()  : int|null
Gets Line item number of units
setDescription()  : void
Sets Line item description
setId()  : void
Sets id.
setPrice()  : void
Sets Line item unit price for the corresponding currency
setQuantity()  : void
Sets Line item number of units
toArray()  : array<string|int, mixed>
Gets Item data as array

Properties

$description

protected string|null $description = null

$id

protected string|null $id = null

$price

protected float|null $price = null

$quantity

protected int|null $quantity = null

Methods

__construct()

public __construct() : mixed

createFromArray()

public static createFromArray(array<string|int, mixed> $item) : Item
Parameters
$item : array<string|int, mixed>

List of line items

Return values
Item

getDescription()

Gets Line item description

public getDescription() : string|null
Return values
string|null

the description

getId()

Gets id.

public getId() : string|null
Return values
string|null

the id

getPrice()

Gets Line item unit price for the corresponding currency

public getPrice() : float|null
Return values
float|null

the price

getQuantity()

Gets Line item number of units

public getQuantity() : int|null
Return values
int|null

the quantity

setDescription()

Sets Line item description

public setDescription(string $description) : void
Parameters
$description : string

the description

setId()

Sets id.

public setId(string $id) : void
Parameters
$id : string

the id

setPrice()

Sets Line item unit price for the corresponding currency

public setPrice(float $price) : void
Parameters
$price : float

the price

setQuantity()

Sets Line item number of units

public setQuantity(int $quantity) : void
Parameters
$quantity : int

the quantity

toArray()

Gets Item data as array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

item data as array


        
On this page

Search results