summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-03-28 21:20:09 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-03-28 21:20:09 +0100
commit73c81ae7091db9ca6fe717beb7b8e585a5a6597e (patch)
tree8b8ce3c72f184f801c1f5cf2c2914316d4ee484e
parent0ae9ed4244d73f59077a70df0dbc800bd977e717 (diff)
parentf1b085df0189dee6c92a4a6145d22206d7cba778 (diff)
downloadnextcloud-server-73c81ae7091db9ca6fe717beb7b8e585a5a6597e.tar.gz
nextcloud-server-73c81ae7091db9ca6fe717beb7b8e585a5a6597e.zip
Merge pull request #7932 from owncloud/update-phpdoc-statement-wrapper-master
adding @method annotation to declare methods which can be called on the ...
-rw-r--r--lib/private/db/statementwrapper.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php
index eaf215c7231..492209b883b 100644
--- a/lib/private/db/statementwrapper.php
+++ b/lib/private/db/statementwrapper.php
@@ -8,6 +8,11 @@
/**
* 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 {
/**
@@ -161,6 +166,8 @@ class OC_DB_StatementWrapper {
/**
* provide an alias for fetch
+ *
+ * @return mixed
*/
public function fetchRow() {
return $this->statement->fetch();
@@ -168,12 +175,13 @@ class OC_DB_StatementWrapper {
/**
* Provide a simple fetchOne.
+ *
* 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
*/
- public function fetchOne($colnum = 0) {
- return $this->statement->fetchColumn($colnum);
+ public function fetchOne($column = 0) {
+ return $this->statement->fetchColumn($column);
}
/**