Money
in package
FinalYes
Неизменяемая сумма в минорных единицах валюты (центы, копейки, йены).
Table of Contents
Properties
Methods
- __construct() : mixed
- currency() : Currency
- isNegative() : bool
- isPositive() : bool
- isZero() : bool
- minor() : int
Properties
$currency read-only
private
Currency
$currency
$minor read-only
private
int
$minor
Methods
__construct()
public
__construct(int $minor, Currency $currency) : mixed
Parameters
- $minor : int
- $currency : Currency
currency()
public
currency() : Currency
Return values
CurrencyisNegative()
public
isNegative() : bool
Return values
boolisPositive()
public
isPositive() : bool
Return values
boolisZero()
public
isZero() : bool
Return values
boolminor()
public
minor() : int