/** * @return array */ public function getTables() { if (!$this->tables) { $this->tables = $this->connection->getTables(); } return $this->tables; }
/** * @return array */ public function getRows() { if (!$this->rows) { $this->rows = $this->connection->getRows($this->name); } return $this->rows; }
/** * @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; }