0 ? (int) $maxPax : (int) $minPax; return match (true) { $pax >= 9 => self::ForNinePlus, $pax >= 1 => [1 => self::ForOne, self::ForTwo, self::ForThree, self::ForFour, self::ForFive, self::ForSix, self::ForSeven, self::ForEight][$pax], // No usable occupancy: TYPO3 files it under "mit anderen" as well. default => self::WithOthers, }; } }