src/Traits/Notifications/NotificationDispatcherTrait.php
public function getNotificationDispatcher(): ?Dispatcher
    {
        if (!$this->hasNotificationDispatcher()) {
            $this->setNotificationDispatcher($this->getDefaultNotificationDispatcher());
        }
        return $this->notificationDispatcher;
    }
public function getNotificationDispatcher(): ?Dispatcher
    {
        if (!$this->hasNotificationDispatcher()) {
            $this->setNotificationDispatcher($this->getDefaultNotificationDispatcher());
        }
        return $this->notificationDispatcher;
    }
public function getNotificationDispatcher ( ) : ? Dispatcher { if ( ! $ this -> hasNotificationDispatcher ( ) ) { $ this -> setNotificationDispatcher ( $ this -> getDefaultNotificationDispatcher ( ) ) ; } return $ this -> notificationDispatcher ; }
Get notification dispatcher

If no notification dispatcher has been set, this method will
set and return a default notification dispatcher, if any such
value is available

@see getDefaultNotificationDispatcher()

@return Dispatcher|null notification dispatcher or null if none notification dispatcher has been set
Get notification dispatcher