public function getNotification()
    {
        if (! $this->notification->isValid()) {
            throw new UnvalidNotificationException($this->notification);
        }

        $this->setDates();

        return $this->notification;
    }
public function getNotification()
    {
        if (! $this->notification->isValid()) {
            throw new UnvalidNotificationException($this->notification);
        }

        $this->setDates();

        return $this->notification;
    }
public function getNotification ( ) { if ( ! $ this -> notification -> isValid ( ) ) { throw new UnvalidNotificationException ( $ this -> notification ) ; } $ this -> setDates ( ) ; return $ this -> notification ; }
Get the current notification.

@return Notification
@throws UnvalidNotificationException
Get the current notification .