Skip to content

Commit 9f60e44

Browse files
committed
Update DB.php
1 parent 6838f22 commit 9f60e44

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/DB.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class DB
1111

1212
private $data = null;
1313

14+
/**
15+
* @var \PDO
16+
*/
1417
private $dbh = null;
1518

1619
private $debug = false;
@@ -33,12 +36,20 @@ class DB
3336

3437
private $select = null;
3538

39+
/**
40+
* @var \PDOStatement
41+
*/
3642
private $sth = null;
3743

3844
protected $table = null;
3945

4046
private $where = array();
4147

48+
/**
49+
* DB constructor.
50+
*
51+
* @throws \Exception
52+
*/
4253
public function __construct() {
4354
$this->mount();
4455
}
@@ -392,6 +403,10 @@ public function limit(int $rowCount = null, int $offset = null): DB
392403
return $this;
393404
}
394405

406+
/**
407+
* @return DB
408+
* @throws \Exception
409+
*/
395410
protected function mount(): DB
396411
{
397412
if (array_key_exists($this->connection, self::$pool)

0 commit comments

Comments
 (0)