src/Traits/Broadcasting/BroadcastFactoryTrait.php
public function getBroadcastFactory(): ?Factory
    {
        if (!$this->hasBroadcastFactory()) {
            $this->setBroadcastFactory($this->getDefaultBroadcastFactory());
        }
        return $this->broadcastFactory;
    }
public function getBroadcastFactory(): ?Factory
    {
        if (!$this->hasBroadcastFactory()) {
            $this->setBroadcastFactory($this->getDefaultBroadcastFactory());
        }
        return $this->broadcastFactory;
    }
public function getBroadcastFactory ( ) : ? Factory { if ( ! $ this -> hasBroadcastFactory ( ) ) { $ this -> setBroadcastFactory ( $ this -> getDefaultBroadcastFactory ( ) ) ; } return $ this -> broadcastFactory ; }
Get broadcast factory

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

@see getDefaultBroadcastFactory()

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