コード例 #1
0
ファイル: Database.php プロジェクト: SqueezyWeb/Database
 /**
  * Retrieve query results.
  *
  * Retrieve the results of the last executed query.
  *
  * @since 1.0.0
  * @access public
  *
  * @return mixed Query results.
  *
  * @throws Freyja\Exceptions\RuntimeException if no query was ever executed in
  * this Database instance.
  */
 public function get()
 {
     if (!isset($this->last)) {
         throw new RuntimeException('A query must be executed before retrieving the results.');
     }
     return $this->last->getResult();
 }