db = $db; } public function getTables() : array { $builder = new Builder($this->db); $tNames = $builder->selectTables()->execute(); $tables = []; foreach ($tNames as $name) { $tables[] = $this->getTable($name); } return $tables; } public function getTable(string $name) : Table { $table = new Table(); return $table; } public function getFields(string $table) : array { $builder = new Builder($this->db); $tNames = $builder->selectFields()->execute(); $fields = []; foreach ($tNames as $name) { $fields[] = $this->getField($name); } return $fields; } public function getField(string $table, string $name) : Field { $field = new Field(); return $field; } }