19declare(strict_types=1);
33 if (!is_array($frm_sess)) {
37 if (!isset($frm_sess[$this->key]) || !is_array($frm_sess[$this->key])) {
38 $frm_sess[$this->key] = [];
48 public function get(
int $thread_id, $default =
null)
52 return $frm_sess[$this->key][$thread_id] ?? $default;
58 public function set(
int $thread_id, $value):
void
62 $frm_sess[$this->key][$thread_id] = $value;
__construct(private readonly string $key)
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.