PHP Class Markette\Gopay\Entity\BasePayment

Inheritance: extends Nette\Object
Show file Open project: markette/gopay Class Usage Examples

Public Methods

Method Description
__construct ( array $values )
getCurrency ( ) : string Returns payment currency
getCustomer ( ) : stdClass Returns customer data
getProductName ( ) : string Returns product name
getSpecific ( ) : integer Returns specific symbol
getSum ( ) : float Returns sum of payment
getSumInCents ( ) : integer Return sum in cents
getVariable ( ) : integer Returns variable symbol
setCurrency ( string $currency ) : self Sets payment currency
setCustomer ( $customer ) : self Sets customer data
setProductName ( string $name ) : self Sets product name
setSpecific ( integer $specific ) : self Sets specific symbol
setSum ( float $sum ) : static Sets sum of payment
setVariable ( integer $variable ) : self Sets variable symbol

Method Details

__construct() public method

public __construct ( array $values )
$values array

getCurrency() public method

Returns payment currency
public getCurrency ( ) : string
return string

getCustomer() public method

Returns customer data
public getCustomer ( ) : stdClass
return stdClass

getProductName() public method

Returns product name
public getProductName ( ) : string
return string

getSpecific() public method

Returns specific symbol
public getSpecific ( ) : integer
return integer

getSum() public method

Returns sum of payment
public getSum ( ) : float
return float

getSumInCents() public method

Return sum in cents
public getSumInCents ( ) : integer
return integer

getVariable() public method

Returns variable symbol
public getVariable ( ) : integer
return integer

setCurrency() public method

Sets payment currency
public setCurrency ( string $currency ) : self
$currency string
return self

setCustomer() public method

Sets customer data
public setCustomer ( $customer ) : self
return self

setProductName() public method

Sets product name
public setProductName ( string $name ) : self
$name string
return self

setSpecific() public method

Sets specific symbol
public setSpecific ( integer $specific ) : self
$specific integer
return self

setSum() public method

Sets sum of payment
public setSum ( float $sum ) : static
$sum float
return static provides a fluent interface

setVariable() public method

Sets variable symbol
public setVariable ( integer $variable ) : self
$variable integer
return self