public function __get($name) { if ($name === 'prefix') { return $this->table_prefix; } throw new \RuntimeException("Cannot read property '{$name}'"); }