*/ public static function get(): array { return [ self::NONE => esc_html__('No resource required', 'daytidy'), self::AUTO => esc_html__('Auto-assign an available resource', 'daytidy'), self::CUSTOMER => esc_html__('Customer chooses a resource', 'daytidy'), ]; } public static function normalize(string $mode): string { $mode = sanitize_key($mode); return array_key_exists($mode, self::get()) ? $mode : self::NONE; } public static function label(string $mode): string { $mode = self::normalize($mode); $labels = self::get(); return $labels[$mode] ?? $mode; } }