Automation/app/Libraries/CommonLibrary.php
2024-09-07 19:00:11 +09:00

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));
}
}