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