Menu

## Item
in package

Item.php : 24

##### 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

### 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

Item.php : 28
`protected string|null $description = null`

#### $id

Item.php : 27
`protected string|null $id = null`

#### $price

Item.php : 29
`protected float|null $price = null`

#### $quantity

Item.php : 30
`protected int|null $quantity = null`

### Methods

#### __construct()

Item.php : 32
`public __construct() : mixed`

#### createFromArray()

Item.php : 120
`public static createFromArray(array<string|int, mixed> $item) : Item`

##### Parameters

$item : array<string|int, mixed>

  List of line items

##### Return values

Item

#### getDescription()

Item.php : 61

Gets Line item description

`public getDescription() : string|null`

##### Return values

string|null —

the description

#### getId()

Item.php : 41

Gets id.

`public getId() : string|null`

##### Return values

string|null —

the id

#### getPrice()

Item.php : 81

Gets Line item unit price for the corresponding currency

`public getPrice() : float|null`

##### Return values

float|null —

the price

#### getQuantity()

Item.php : 101

Gets Line item number of units

`public getQuantity() : int|null`

##### Return values

int|null —

the quantity

#### setDescription()

Item.php : 71

Sets Line item description

`public setDescription(string $description) : void`

##### Parameters

$description : string

  the description

#### setId()

Item.php : 51

Sets id.

`public setId(string $id) : void`

##### Parameters

$id : string

  the id

#### setPrice()

Item.php : 91

Sets Line item unit price for the corresponding currency

`public setPrice(float $price) : void`

##### Parameters

$price : float

  the price

#### setQuantity()

Item.php : 111

Sets Line item number of units

`public setQuantity(int $quantity) : void`

##### Parameters

$quantity : int

  the quantity

#### toArray()

Item.php : 136

Gets Item data as array

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

##### Return values

array<string|int, mixed> —

item data as array

## Search results