Пример #1
0
 /**
  * @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));
 }
Пример #3
0
 /**
  * @return Amount
  */
 public function getAmount()
 {
     return $this->amountTable->toAmount($this);
 }