for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.8.0
*/
namespace Quantum\Exceptions;
* Class FileSystemException
* @package Quantum\Exceptions
class FileSystemException extends AppException
{
* @param string $name
* @return \Quantum\Exceptions\FileSystemException
public static function directoryNotExists(string $name): FileSystemException
return new static(t('exception.directory_not_exist', $name), E_WARNING);
}
public static function directoryNotWritable(string $name): FileSystemException
return new static(t('exception.directory_not_writable', $name), E_WARNING);
public static function fileAlreadyExists(): FileSystemException
return new static(t('exception.file_already_exists'), E_WARNING);