$this->canResumeOnboarding, 'archive' => $this->canArchive, 'restore' => $this->canRestore, default => false, }; } public function primaryManagementActionKey(bool $preferOnboarding = false): ?string { if ($preferOnboarding && $this->canResumeOnboarding) { return 'resume_onboarding'; } if ($this->canRestore) { return 'restore'; } if ($this->canArchive) { return 'archive'; } return null; } }