29 lines
569 B
PHP
29 lines
569 B
PHP
<?php
|
|
|
|
namespace App\Libraries\MyStorage;
|
|
|
|
class MyStorageLibrary
|
|
{
|
|
private $_path = WRITEPATH . "uploads";
|
|
private $_debug = false;
|
|
public function __construct() {}
|
|
|
|
final public function getPath(): string
|
|
{
|
|
return $this->_path;
|
|
}
|
|
final public function setPath(string $path): void
|
|
{
|
|
$this->_path .= DIRECTORY_SEPARATOR . $path;
|
|
}
|
|
|
|
final public function getDebug(): bool
|
|
{
|
|
return $this->_debug;
|
|
}
|
|
final public function setDebug(bool $debug): void
|
|
{
|
|
$this->_debug = $debug;
|
|
}
|
|
}
|