public function __construct($data = null) { $tables = array_keys($this->table_defs); $tableName = $tables[0]; $this->table_name = $tableName; $this->table_columns = $this->table_defs[$tableName]; unset($this->table_defs); parent::__construct($data); }