src/Traits/Filesystem/StorageFactoryTrait.php
public function getStorageFactory(): ?Factory
    {
        if (!$this->hasStorageFactory()) {
            $this->setStorageFactory($this->getDefaultStorageFactory());
        }
        return $this->storageFactory;
    }
public function getStorageFactory(): ?Factory
    {
        if (!$this->hasStorageFactory()) {
            $this->setStorageFactory($this->getDefaultStorageFactory());
        }
        return $this->storageFactory;
    }
public function getStorageFactory ( ) : ? Factory { if ( ! $ this -> hasStorageFactory ( ) ) { $ this -> setStorageFactory ( $ this -> getDefaultStorageFactory ( ) ) ; } return $ this -> storageFactory ; }
Get storage factory

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

@see getDefaultStorageFactory()

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