Automation/app/Libraries/CommonLibrary.php
2024-09-20 19:51:36 +09:00

22 lines
435 B
PHP

<?php
namespace App\Libraries;
abstract class CommonLibrary
{
private $_attributes = [];
protected function __construct() {}
final public function __get($name)
{
if (!array_key_exists($name, $this->_attributes)) {
return null;
}
return $this->_attributes[$name];
}
final public function __set($name, $value): void
{
$this->_attributes[$name] = $value;
}
}