type = $arg; $this->atoms = $this->get_atoms(self::subatom_classes,Unknown::class,$offset,$size,$data,$arg); // For debugging if (FALSE) $this->debug = hex_dump($data ?: $this->data()); } public function __get(string $key): mixed { switch ($key) { case 'type': return $this->{$key}; default: return parent::__get($key); } } }