public function getNotifications()
    {
        if (count($this->notifications) == 0) {
            $this->addNotification($this->getNotification());
        }

        return $this->notifications;
    }
public function getNotifications()
    {
        if (count($this->notifications) == 0) {
            $this->addNotification($this->getNotification());
        }

        return $this->notifications;
    }
public function getNotifications ( ) { if ( count ( $ this -> notifications ) == 0 ) { $ this -> addNotification ( $ this -> getNotification ( ) ) ; } return $ this -> notifications ; }
Get all notifications.

@return array
@throws UnvalidNotificationException
Get all notifications .