summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-09-16 10:29:01 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-09-16 10:29:01 +0200
commitdd70d1b88c004c06cd0a2f226b17f59e8651848c (patch)
tree775fcc9fee2bc3117fecacf300e8bb994a2df89d /lib
parentaf52ffc5d56ef10d39446414cdd62647eaf56868 (diff)
parent4f0f7e35ca4384fbbca85207bcb03161f688fcbd (diff)
downloadnextcloud-server-dd70d1b88c004c06cd0a2f226b17f59e8651848c.tar.gz
nextcloud-server-dd70d1b88c004c06cd0a2f226b17f59e8651848c.zip
Merge pull request #11090 from owncloud/fix-undefined-class-and-phpdoc
Fix unexisting class and PHPDoc
Diffstat (limited to 'lib')
-rw-r--r--lib/private/ocs/result.php24
1 files changed, 8 insertions, 16 deletions
diff --git a/lib/private/ocs/result.php b/lib/private/ocs/result.php
index 567fe7f87fe..c5bd1d7a69e 100644
--- a/lib/private/ocs/result.php
+++ b/lib/private/ocs/result.php
@@ -5,19 +5,9 @@
* @author Tom Needham
* @copyright 2012 Tom Needham tom@owncloud.com
*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either
-* version 3 of the License, or any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*
-* You should have received a copy of the GNU Affero General Public
-* License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*
+* This file is licensed under the Affero General Public License version 3 or
+* later.
+* See the COPYING-README file.
*/
class OC_OCS_Result{
@@ -27,6 +17,8 @@ class OC_OCS_Result{
/**
* create the OCS_Result object
* @param mixed $data the data to return
+ * @param int $code
+ * @param null|string $message
*/
public function __construct($data=null, $code=100, $message=null) {
if ($data === null) {
@@ -44,7 +36,7 @@ class OC_OCS_Result{
* optionally set the total number of items available
* @param int $items
*/
- public function setTotalItems(int $items) {
+ public function setTotalItems($items) {
$this->items = $items;
}
@@ -52,7 +44,7 @@ class OC_OCS_Result{
* optionally set the the number of items per page
* @param int $items
*/
- public function setItemsPerPage(int $items) {
+ public function setItemsPerPage($items) {
$this->perPage = $items;
}
@@ -92,7 +84,7 @@ class OC_OCS_Result{
}
/**
- * return bool if the method succedded
+ * return bool Whether the method succeeded
* @return bool
*/
public function succeeded() {