private assertSameCurrencyAs ( |
||
$other |
private function assertSameCurrencyAs(Money $other)
{
if (!$this->hasSameCurrencyAs($other)) {
throw new InvalidArgumentException('Currencies must be identical');
}
}