public function getStegToNextMal() { return Steg::kmToSteg($this->getCurrentMal()->getAvstand()) - ($this->getStegTotal() - Mal::getUsedSteg($this)); }
public function getUsedSteg() { $km = 0; foreach ($this->listMal() as $mal) { if ($mal->getId() != $this->getCurrentMal()->getId()) { $km += $mal->getAvstand(); } } return Steg::kmToSteg($km); }