/** * @return DistanceBonus */ public function getBonus() { return $this->distanceTable->toBonus($this); }
/** * @test */ public function I_can_convert_size_to_bonus() { $weightTable = new DistanceTable(); $bonus = $weightTable->sizeToDistanceBonus(new IntegerObject($value = 123)); self::assertSame($value + 12, $bonus->getValue()); }
/** * @return Distance */ public function getDistance() { return $this->distanceTable->toDistance($this); }