/** * @return AmountBonus */ public function getBonus() { return $this->amountTable->toBonus($this); }
/** * @test * @expectedException \OutOfRangeException */ public function I_can_not_convert_too_high_value_to_bonus() { $amountTable = new AmountTable(); $amountTable->toBonus(new Amount(90001, Amount::AMOUNT, $amountTable)); }
/** * @return Amount */ public function getAmount() { return $this->amountTable->toAmount($this); }