Automation/app/Libraries/CommonLibrary.php
2024-09-18 19:22:12 +09:00

22 lines
423 B
PHP

<?php
namespace App\Libraries;
abstract class CommonLibrary
{
private $_options = [];
protected function __construct() {}
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;
}
}