Ejemplo n.º 1
0
 /**
  * @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());
 }
Ejemplo n.º 3
0
 /**
  * @return Distance
  */
 public function getDistance()
 {
     return $this->distanceTable->toDistance($this);
 }