/** * @return array */ public function getTables() { if (!$this->tables) { $this->tables = $this->connection->getTables(); } return $this->tables; }
/** * @return array */ public function getTables() { if (!$this->tables) { $this->tables = $this->connection->getTables(); } if (!$this->tables) { throw new \exception("Unable to retrieve any tables."); } return $this->tables; }