Money\Money::__construct PHP Метод

__construct() приватный Метод

private __construct ( string $amount, Currency $currency )
$amount string Amount, expressed as a string (eg '10.00')
$currency Currency
    private function __construct($amount, Currency $currency)
    {
        $this->amount = $amount;
        $this->currency = $currency;
    }

Usage Example

 /**
  * @param integer $amount
  */
 public function __construct($amount, Currency $currency = null)
 {
     if ($currency === null) {
         $currency = new Currency(self::DEFAULT_CURRENCY_NAME);
     }
     parent::__construct($amount, $currency);
 }