src/Storage/AbstractStorage.php
public function setDataDirectory(string $directory)
    {
        if (!is_dir($directory)) {
            $exception = new StorageException(sprintf(StorageException::DIRECTORY_NOT_FOUND, $directory));
            $exception->setDirectory($exception);
            $exception->setProvider(static::class);
            throw $exception;
        }

        $this->dataDirectory = $directory;
    }
public function setDataDirectory(string $directory)
    {
        if (!is_dir($directory)) {
            $exception = new StorageException(sprintf(StorageException::DIRECTORY_NOT_FOUND, $directory));
            $exception->setDirectory($exception);
            $exception->setProvider(static::class);
            throw $exception;
        }

        $this->dataDirectory = $directory;
    }
public function setDataDirectory ( string $ directory ) { if ( ! is_dir ( $ directory ) ) { $ exception = new StorageException ( sprintf ( StorageException :: DIRECTORY_NOT_FOUND , $ directory ) ) ; $ exception -> setDirectory ( $ exception ) ; $ exception -> setProvider ( static :: class ) ; throw $ exception ; } $ this -> dataDirectory = $ directory ; }
Set data directory
@param string $directory
@throws StorageException
Set data directory