65 throw new \InvalidArgumentException(
"XP must be at least 0");
67 if($xp <= self::getXpToReachLevel(16)){
71 }elseif($xp <= self::getXpToReachLevel(31)){
81 $x = Math::solveQuadratic($a, $b, $c - $xp);
83 throw new AssumptionFailedError(
"Expected at least 1 solution");