22 lines
452 B
PHP
22 lines
452 B
PHP
<?php
|
|
|
|
namespace App\Libraries\MyStorage;
|
|
|
|
use App\Libraries\CommonLibrary;
|
|
use App\Entities\MyStorage\FileEntity;
|
|
|
|
abstract class MyStorageLibrary extends CommonLibrary
|
|
{
|
|
private $_uploadPath = "uploads";
|
|
protected function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
abstract public function save($content): null|FileEntity;
|
|
final public function getUploadPath(): string
|
|
{
|
|
return $this->_uploadPath;
|
|
}
|
|
}
|