24 lines
452 B
PHP
24 lines
452 B
PHP
<?php
|
|
|
|
namespace App\Libraries;
|
|
|
|
abstract class CommonLibrary
|
|
{
|
|
private $_debug = false;
|
|
protected function __construct() {}
|
|
|
|
final public function getDebug(): bool
|
|
{
|
|
return $this->_debug;
|
|
}
|
|
final public function setDebug(bool $debug): void
|
|
{
|
|
$this->_debug = $debug;
|
|
}
|
|
|
|
final public function getFileMimeType($file): string
|
|
{
|
|
return image_type_to_mime_type(exif_imagetype($file));
|
|
}
|
|
}
|