Automation/app/Libraries/CommonLibrary.php
2024-09-05 20:13:31 +09:00

25 lines
539 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;
}
//url에 http 나 https가 포함되어 있으면 true
final public function isContainsHttpOrHttps($url): bool
{
return strpos($url, 'http://') !== false || strpos($url, 'https://') !== false;
}
}