Skip to content
Snippets Groups Projects
Commit 73c81ae7 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #7932 from owncloud/update-phpdoc-statement-wrapper-master

adding @method annotation to declare methods which can be called on the ...
parents 0ae9ed42 f1b085df
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
/** /**
* small wrapper around \Doctrine\DBAL\Driver\Statement to make it behave, more like an MDB2 Statement * small wrapper around \Doctrine\DBAL\Driver\Statement to make it behave, more like an MDB2 Statement
*
* @method boolean bindValue(mixed $param, mixed $value, integer $type = null);
* @method string errorCode();
* @method array errorInfo();
* @method integer rowCount();
*/ */
class OC_DB_StatementWrapper { class OC_DB_StatementWrapper {
/** /**
...@@ -161,6 +166,8 @@ class OC_DB_StatementWrapper { ...@@ -161,6 +166,8 @@ class OC_DB_StatementWrapper {
/** /**
* provide an alias for fetch * provide an alias for fetch
*
* @return mixed
*/ */
public function fetchRow() { public function fetchRow() {
return $this->statement->fetch(); return $this->statement->fetch();
...@@ -168,12 +175,13 @@ class OC_DB_StatementWrapper { ...@@ -168,12 +175,13 @@ class OC_DB_StatementWrapper {
/** /**
* Provide a simple fetchOne. * Provide a simple fetchOne.
*
* fetch single column from the next row * fetch single column from the next row
* @param int $colnum the column number to fetch * @param int $column the column number to fetch
* @return string * @return string
*/ */
public function fetchOne($colnum = 0) { public function fetchOne($column = 0) {
return $this->statement->fetchColumn($colnum); return $this->statement->fetchColumn($column);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment