waitingNotifications; } public function persist(Notification $notification): void { $this->waitingNotifications[] = $notification; } }