Open Journal Systems  3.3.0
Money\Currency Class Reference
Inheritance diagram for Money\Currency:

Public Member Functions

 __construct ($code)
 
 __toString ()
 
 equals (Currency $other)
 
 getCode ()
 
 isAvailableWithin (Currencies $currencies)
 
 jsonSerialize ()
 

Detailed Description

Currency Value Object.

Holds Currency specific data.

Author
Mathias Verraes

@psalm-immutable

Definition at line 14 of file vendor/moneyphp/money/src/Currency.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Currency::__construct (   $code)
Parameters
string$code

Definition at line 29 of file vendor/moneyphp/money/src/Currency.php.

Member Function Documentation

◆ __toString()

Money\Currency::__toString ( )
Returns
string

Definition at line 79 of file vendor/moneyphp/money/src/Currency.php.

◆ equals()

Money\Currency::equals ( Currency  $other)

Checks whether this currency is the same as an other.

Parameters
Currency$other
Returns
bool

Definition at line 59 of file vendor/moneyphp/money/src/Currency.php.

◆ getCode()

◆ isAvailableWithin()

Money\Currency::isAvailableWithin ( Currencies  $currencies)

Checks whether this currency is available in the passed context.

Parameters
Currencies$currencies
Returns
bool

Definition at line 71 of file vendor/moneyphp/money/src/Currency.php.

◆ jsonSerialize()

Money\Currency::jsonSerialize ( )

{}

Returns
string

Definition at line 89 of file vendor/moneyphp/money/src/Currency.php.


The documentation for this class was generated from the following file: