''] + $months; if ($value === null) { return $months; } return $months[$value]; } public static function getInter($value = null) { $inter = [ 0 => 'měsíčně', 1 => 'čtvrtletně', 2 => 'ročně', ]; if ($value === null) { return $inter; } return $inter[$value]; } public static function getAppliesTo($value = null) { $applies_to = [ 0 => 'měsíční i čtvrtletní', 1 => 'měsíční', 2 => 'čtvrtletní', ]; if ($value === null) { return $applies_to; } return $applies_to[$value]; } }