src/Traits/Queue/QueueFactoryTrait.php
public function getQueueFactory(): ?Factory
    {
        if (!$this->hasQueueFactory()) {
            $this->setQueueFactory($this->getDefaultQueueFactory());
        }
        return $this->queueFactory;
    }
public function getQueueFactory(): ?Factory
    {
        if (!$this->hasQueueFactory()) {
            $this->setQueueFactory($this->getDefaultQueueFactory());
        }
        return $this->queueFactory;
    }
public function getQueueFactory ( ) : ? Factory { if ( ! $ this -> hasQueueFactory ( ) ) { $ this -> setQueueFactory ( $ this -> getDefaultQueueFactory ( ) ) ; } return $ this -> queueFactory ; }
Get queue factory

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

@see getDefaultQueueFactory()

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