Wallet
in package
Tags
Table of Contents
Properties
- $avatar : string|null
- $currencies : Currencies
- $displayName : string|null
- $image : string|null
- $key : string|null
- $payPro : bool|null
Methods
- __construct() : mixed
- Constructor, create a minimal request Wallet object.
- getAvatar() : string|null
- Gets avatar
- getCurrencies() : Currencies
- Gets currencies
- getDisplayName() : string|null
- Gets display name
- getImage() : string|null
- Gets image
- getKey() : string|null
- Gets A unique identifier for the wallet
- getPayPro() : bool|null
- Gets pay pro
- setAvatar() : void
- Sets avatar
- setCurrencies() : void
- Sets currencies
- setDisplayName() : void
- Sets display name
- setImage() : void
- Sets image
- setKey() : void
- Sets A unique identifier for the wallet
- setPayPro() : void
- Sets pay pro
- toArray() : array<string|int, mixed>
- Gets Wallet as array
Properties
$avatar
protected
string|null
$avatar
= null
$currencies
protected
Currencies
$currencies
$displayName
protected
string|null
$displayName
= null
$image
protected
string|null
$image
= null
$key
protected
string|null
$key
= null
$payPro
protected
bool|null
$payPro
= null
Methods
__construct()
Constructor, create a minimal request Wallet object.
public
__construct() : mixed
getAvatar()
Gets avatar
public
getAvatar() : string|null
Filename of a wallet graphic (not fully qualified)
Return values
string|null —the avatar
getCurrencies()
Gets currencies
public
getCurrencies() : Currencies
Details of what currencies support payments for this wallet
Return values
Currencies —the currencies
getDisplayName()
Gets display name
public
getDisplayName() : string|null
Human readable display name for the wallet
Return values
string|null —the display name
getImage()
Gets image
public
getImage() : string|null
URL that displays wallet avatar image
Return values
string|null —the image url
getKey()
Gets A unique identifier for the wallet
public
getKey() : string|null
Return values
string|null —the key
getPayPro()
Gets pay pro
public
getPayPro() : bool|null
Whether or not the wallet supports ANY BitPay Payment Protocol options
Return values
bool|null —the pay pro
setAvatar()
Sets avatar
public
setAvatar(string $avatar) : void
Filename of a wallet graphic (not fully qualified)
Parameters
- $avatar : string
-
the avatar
setCurrencies()
Sets currencies
public
setCurrencies(Currencies $currencies) : void
Details of what currencies support payments for this wallet
Parameters
- $currencies : Currencies
-
the currencies
setDisplayName()
Sets display name
public
setDisplayName(string $displayName) : void
Human readable display name for the wallet
Parameters
- $displayName : string
-
the display name
setImage()
Sets image
public
setImage(string $image) : void
URL that displays wallet avatar image
Parameters
- $image : string
-
the image url
setKey()
Sets A unique identifier for the wallet
public
setKey(string $key) : void
Parameters
- $key : string
-
the key
setPayPro()
Sets pay pro
public
setPayPro(bool $payPro) : void
Whether or not the wallet supports ANY BitPay Payment Protocol options
Parameters
- $payPro : bool
-
the pay pro
toArray()
Gets Wallet as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Wallet as array