code: public function addNotification(Notification $notification)
      {
          $this->notifications[] = $notification;
  
          if (count($this->notifications) > 3) {
              throw new \Exception('Maximum 3 notifications allowed');
          }
  
          return $this;
      }
docs: @param Notification $notification
  
  @throws \Exception
  
  @return $this