summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-28 12:57:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-28 12:57:27 +0100
commitf1b085df0189dee6c92a4a6145d22206d7cba778 (patch)
tree989b41393e534fe0fcc712241544bf49c55c79c7 /lib
parent2d592ddc8f26e72211d1c01cec8979cd371b8215 (diff)
downloadnextcloud-server-f1b085df0189dee6c92a4a6145d22206d7cba778.tar.gz
nextcloud-server-f1b085df0189dee6c92a4a6145d22206d7cba778.zip
adding @method annotation to declare methods which can be called on the wrapped statement object
Diffstat (limited to 'lib')
-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);
}
/**