*/ public function editions(): array { return match ($this) { self::UsersManage, self::StorageConfigure, self::EmailTransportConfigure, self::SystemUpdates, self::SchedulerMonitoring, self::CustomAssets => [Edition::Community], self::Branding, self::StorageManaged, self::CaptchaManagedKeys => [Edition::Cloud], }; } public function availableIn(Edition $edition): bool { return in_array($edition, $this->editions(), true); } }