public function sendNotificationsToAllEventInvitees($events)
 {
     foreach ($events as $event) {
         $creator = User::find($event->uid);
         $date = $event->date;
         $invitees = Invite::getInvites($event->eid);
         $this->sendNotificationsToInviteeList($invitees, $creator->firstname, $date);
     }
 }
 private static function getInvites($eid)
 {
     $inviteDB = Invite::getInvites($eid);
     $invites = [];
     foreach ($inviteDB as $entry) {
         if (isset($entry->uid)) {
             array_push($invites, $entry->uid);
         }
     }
     return $invites;
 }