PHP Class SimpleSoftwareIO\QrCode\DataTypes\BTC

Inheritance: implements SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface
Mostrar archivo 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_oe property

The BitCoin address.
protected string $address
return string

$amount protected_oe property

The amount to send.
protected int $amount
return integer

$label protected_oe property

The BitCoin transaction label.
protected string $label
return string

$message protected_oe property

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

$prefix protected_oe property

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

$returnAddress protected_oe property

The BitCoin return URL.
protected string $returnAddress
return string

$separator protected_oe property

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