canViewNotificationAnalytics = $canViewNotificationAnalytics; $this->canViewNotificationRelease = $canViewNotificationRelease; } /** * Determine if the analytics popup is visible * * @return bool */ public function isAnalyticsVisible(): bool { return $this->canViewNotificationAnalytics->isVisible([]); } /** * Determine if the release popup is visible * * @return bool */ public function isReleaseVisible(): bool { return $this->canViewNotificationRelease->isVisible([]); } }