public function getPostgisFields() { if (property_exists($this, 'postgisFields')) { return Arr::isAssoc($this->postgisFields) ? array_keys($this->postgisFields) : $this->postgisFields; //Returns the non-associative array that doesn't define the geometry type. } else { throw new PostgisFieldsNotDefinedException(__CLASS__ . ' has to define $postgisFields'); } }