/** * Returns a string containing the value of this money in minor units. * * Example: 123.45 USD will return '12345'. * * @return string */ public function getAmountMinor() { return $this->amount->unscaledValue(); }