src/Traits/Notifications/NotificationFactoryTrait.php
public function getNotificationFactory(): ?Factory
    {
        if (!$this->hasNotificationFactory()) {
            $this->setNotificationFactory($this->getDefaultNotificationFactory());
        }
        return $this->notificationFactory;
    }
public function getNotificationFactory(): ?Factory
    {
        if (!$this->hasNotificationFactory()) {
            $this->setNotificationFactory($this->getDefaultNotificationFactory());
        }
        return $this->notificationFactory;
    }
public function getNotificationFactory ( ) : ? Factory { if ( ! $ this -> hasNotificationFactory ( ) ) { $ this -> setNotificationFactory ( $ this -> getDefaultNotificationFactory ( ) ) ; } return $ this -> notificationFactory ; }
Get notification factory

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

@see getDefaultNotificationFactory()

@return Factory|null notification factory or null if none notification factory has been set
Get notification factory