__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace OpenSpout\Common;
use OpenSpout\Common\Exception\InvalidArgumentException;
/**
* @internal
*/
trait TempFolderOptionTrait
{
private string $tempFolder;
final public function setTempFolder(string $tempFolder): void
{
if (!is_dir($tempFolder) || !is_writable($tempFolder)) {
throw new InvalidArgumentException("{$tempFolder} is not a writable folder");
}
$this->tempFolder = $tempFolder;
}
final public function getTempFolder(): string
{
if (!isset($this->tempFolder)) {
$this->setTempFolder(sys_get_temp_dir());
}
return $this->tempFolder;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Entity | Folder | 0777 |
|
|
| Exception | Folder | 0777 |
|
|
| Helper | Folder | 0777 |
|
|
| TempFolderOptionTrait.php | File | 694 B | 0777 |
|