PHP Class Payu\Component\Currency

Inheritance: implements ComponentInterface
Datei anzeigen Open project: paranoiaproject/payuclient

Public Methods

Method Description
__construct ( string $code = null ) Constructor
__toString ( ) : string Returns string representation of the currency instance in case of casting a currency instance to string.
getCode ( ) : string
setCode ( string $code ) Sets currency code.

Method Details

__construct() public method

Constructor
public __construct ( string $code = null )
$code string Three letter currency code.

__toString() public method

Returns string representation of the currency instance in case of casting a currency instance to string.
public __toString ( ) : string
return string

getCode() public method

public getCode ( ) : string
return string

setCode() public method

Sets currency code.
public setCode ( string $code )
$code string