*/ public static function get(): array { return [ self::OPTION_COUNT => esc_html__('Use option count', 'daytidy'), self::RESOURCE_CAPACITY => esc_html__('Use resource capacity', 'daytidy'), self::OPTION_AND_RESOURCE => esc_html__('Require option and resource capacity', 'daytidy'), ]; } public static function normalize(string $behavior): string { $behavior = sanitize_key($behavior); return array_key_exists($behavior, self::get()) ? $behavior : self::OPTION_COUNT; } public static function label(string $behavior): string { $behavior = self::normalize($behavior); $labels = self::get(); return $labels[$behavior] ?? $behavior; } }