summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {