/** * @return Weight */ public function getWeight() { return $this->weightTable->toWeight($this); }
/** * @test * @expectedException \OutOfRangeException */ public function I_can_not_convert_too_high_bonus_to_too_detailed_unit() { $weightTable = new WeightTable(); $weightTable->toWeight(new WeightBonus(60, $weightTable)); }