/**
  * @param int $value
  * @param WeightTable $weightTable
  * @throws \DrdPlus\Tables\Measurements\Partials\Exceptions\BonusRequiresInteger
  */
 public function __construct($value, WeightTable $weightTable)
 {
     $this->weightTable = $weightTable;
     parent::__construct($value);
 }
示例#2
0
 public function __construct($value, ExperiencesTable $experiencesTable)
 {
     parent::__construct($value);
     $this->guardLevelBoundaries($this->getValue());
     $this->experiencesTable = $experiencesTable;
 }
 public function __construct($value)
 {
     parent::__construct($value);
 }
 /**
  * @param int $value
  * @param FatigueTable $fatigueTable
  */
 public function __construct($value, FatigueTable $fatigueTable)
 {
     parent::__construct($value);
     $this->fatigueTable = $fatigueTable;
 }
 public function __construct($value, WoundsTable $woundsTable)
 {
     $this->woundsTable = $woundsTable;
     parent::__construct($value);
 }
 /**
  * @param int $bonusValue
  * @param SpeedTable $speedTable
  * @throws \DrdPlus\Tables\Measurements\Partials\Exceptions\BonusRequiresInteger
  */
 public function __construct($bonusValue, SpeedTable $speedTable)
 {
     parent::__construct($bonusValue);
     $this->speedTable = $speedTable;
 }
 /**
  * @param int $bonusValue
  * @param AmountTable $amountTable
  */
 public function __construct($bonusValue, AmountTable $amountTable)
 {
     parent::__construct($bonusValue);
     $this->amountTable = $amountTable;
 }
 /**
  * @param AbstractBonus $bonus
  * @param string|null $wantedUnit
  * @return bool
  */
 protected function hasMeasurementFor(AbstractBonus $bonus, $wantedUnit = null)
 {
     $bonusValue = $bonus->getValue();
     $wantedUnit = $this->determineUnit($wantedUnit, $bonusValue);
     return $this->hasValueByBonusValueAndUnit($bonusValue, $wantedUnit);
 }
示例#9
0
 /**
  * @param int $value
  * @param TimeTable $timeTable
  */
 public function __construct($value, TimeTable $timeTable)
 {
     parent::__construct($value);
     $this->timeTable = $timeTable;
 }
 /**
  * @param int $value
  * @param DistanceTable $distanceTable
  * @throws \DrdPlus\Tables\Measurements\Partials\Exceptions\BonusRequiresInteger
  */
 public function __construct($value, DistanceTable $distanceTable)
 {
     parent::__construct($value);
     $this->distanceTable = $distanceTable;
 }