Automation/app/Controllers/CommonController.php
2024-09-18 19:22:12 +09:00

24 lines
449 B
PHP

<?php
namespace App\Controllers;
use App\Controllers\BaseController;
abstract class CommonController extends BaseController
{
private $_options = [];
final public function __get($name)
{
if (!array_key_exists($name, $this->_options)) {
return null;
}
return $this->_options[$name];
}
final public function __set($name, $value): void
{
$this->_options[$name] = $value;
}
}