Automation init...3
This commit is contained in:
parent
073f80c46a
commit
eb14c5f8bc
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user