/** * @return array * @throws Exception */ public function getFields() { if (empty($this->structure)) { throw new Exception("Structure not set"); } return array_keys($this->structure->getFields()); }
public function testGetFields() { $this->assertEquals(['id' => 'int', 'name' => 'varchar'], $this->structure->getFields()); }