Skip to content

Commit

Permalink
phpdoc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jul 20, 2017
1 parent 78dea7e commit b425b7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Mdb2/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public function select_db($database) {

/**
* Db::link_id()
* @return int
*
* @return int|\MyDb\Mdb2\mysqli
*/
public function link_id() {
return $this->Link_ID;
Expand Down
5 changes: 3 additions & 2 deletions src/Mysqli/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public function select_db($database) {

/**
* Db::link_id()
* @return int
*
* @return int|\MyDb\Mysqli\mysqli
*/
public function link_id() {
return $this->Link_ID;
Expand Down Expand Up @@ -367,7 +368,7 @@ public function qr($query, $line = '', $file = '') {
* creates a prepaired statement from query
*
* @param string $query sql wuery like INSERT INTO table (col) VALUES (?) or SELECT * from table WHERE col1 = ? and col2 = ? or UPDATE table SET col1 = ?, col2 = ? WHERE col3 = ?
* @return mysqli_stmt a statement object or FALSE if an error occurred.
* @return int|\MyDb\Mysqli\mysqli_stmt
*/
public function prepare($query) {
if (!$this->connect()) {
Expand Down

0 comments on commit b425b7b

Please sign in to comment.