/**
  * @see ISimulationObserver::onInjury()
  */
 public function onInjury(SimulationMatch $match, SimulationPlayer $player, $numberOfMatches)
 {
     $player->injured = $numberOfMatches;
     // try to substitute in next minute
     $substituted = SimulationHelper::createUnplannedSubstitutionForPlayer($match->minute + 1, $player);
     // not possible, hence just remove player
     if (!$substituted) {
         $player->team->removePlayer($player);
     }
 }