]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding @method annotation to declare methods which can be called on the wrapped state...
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 28 Mar 2014 11:57:27 +0000 (12:57 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 28 Mar 2014 11:57:27 +0000 (12:57 +0100)
lib/private/db/statementwrapper.php

index eaf215c72313be1a4cbc9f9457a8036209cc9384..492209b883bd94134cacd548dcb308ef0937c730 100644 (file)
@@ -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);
        }
 
        /**