PHP Class SimpleSoftwareIO\QrCode\DataTypes\BTC

Inheritance: implements SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface
Show file Open project: simplesoftwareio/simple-qrcode

Protected Properties

Property Type Description
$address string The BitCoin address.
$amount integer The amount to send.
$label string The BitCoin transaction label.
$message string The BitCoin message to send.
$prefix string The prefix of the QrCode.
$returnAddress string The BitCoin return URL.
$separator string The separator between the variables.

Public Methods

Method Description
__toString ( ) : string Returns the correct QrCode format.
create ( array $arguments ) Generates the DataType Object and sets all of its properties.

Protected Methods

Method Description
buildBitCoinString ( ) : string Builds a BitCoin string.
setOptions ( array $options ) Sets the optional BitCoin options.
setProperties ( array $arguments ) Sets the BitCoin arguments.

Method Details

__toString() public method

Returns the correct QrCode format.
public __toString ( ) : string
return string

buildBitCoinString() protected method

Builds a BitCoin string.
protected buildBitCoinString ( ) : string
return string

create() public method

Generates the DataType Object and sets all of its properties.
public create ( array $arguments )
$arguments array

setOptions() protected method

Sets the optional BitCoin options.
protected setOptions ( array $options )
$options array

setProperties() protected method

Sets the BitCoin arguments.
protected setProperties ( array $arguments )
$arguments array

Property Details

$address protected property

The BitCoin address.
protected string $address
return string

$amount protected property

The amount to send.
protected int $amount
return integer

$label protected property

The BitCoin transaction label.
protected string $label
return string

$message protected property

The BitCoin message to send.
protected string $message
return string

$prefix protected property

The prefix of the QrCode.
protected string $prefix
return string

$returnAddress protected property

The BitCoin return URL.
protected string $returnAddress
return string

$separator protected property

The separator between the variables.
protected string $separator
return string