Automation init...3

This commit is contained in:
최준흠 2024-09-18 19:22:12 +09:00
parent 073f80c46a
commit eb14c5f8bc
3 changed files with 6 additions and 4 deletions

View File

@ -8,12 +8,12 @@ abstract class CommonController extends BaseController
{
private $_options = [];
final public function __get($name): array|null
final public function __get($name)
{
if (!array_key_exists($name, $this->_options)) {
return null;
}
return $this->_options;
return $this->_options[$name];
}
final public function __set($name, $value): void

View File

@ -6,12 +6,12 @@ abstract class CommonLibrary
{
private $_options = [];
protected function __construct() {}
final public function __get($name): array|null
final public function __get($name)
{
if (!array_key_exists($name, $this->_options)) {
return null;
}
return $this->_options;
return $this->_options[$name];
}
final public function __set($name, $value): void

View File

@ -121,6 +121,8 @@ class InvenCrawler extends MangboardCrawler
// </div>
public function execute(int $max_limit): void
{
echo $this->isDebug ? "TRUE" : "FALSE";
exit;
try {
if ($this->isDebug) {
$listInfo = [];