'Ticket status changed', self::TicketCreate => 'Ticket create', }; } /** * @return array */ public static function options(): array { return array_map( fn (self $eventType): array => [ 'label' => $eventType->label(), 'value' => $eventType->value, ], self::cases(), ); } /** * @param array|null $notificationEventTypes * @return array */ public static function values(?array $notificationEventTypes = null): array { return array_map( fn (self $notificationEventType): string => $notificationEventType->value, $notificationEventTypes ?? self::cases(), ); } }