'Casamentos', self::Corporate => 'Corporate', }; } /** * @return list */ public function eventTypePatterns(): array { return match ($this) { self::Casamentos => ['%casamento%', '%wedding%', '%social%'], self::Corporate => ['%corporat%', '%empresa%', '%business%'], }; } public static function tryFromQuery(?string $value): ?self { if ($value === null || $value === '') { return null; } return self::tryFrom($value); } }