Skip to content
Snippets Groups Projects
Commit dd70d1b8 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11090 from owncloud/fix-undefined-class-and-phpdoc

Fix unexisting class and PHPDoc
parents af52ffc5 4f0f7e35
No related branches found
No related tags found
Loading
...@@ -5,19 +5,9 @@ ...@@ -5,19 +5,9 @@
* @author Tom Needham * @author Tom Needham
* @copyright 2012 Tom Needham tom@owncloud.com * @copyright 2012 Tom Needham tom@owncloud.com
* *
* This library is free software; you can redistribute it and/or * This file is licensed under the Affero General Public License version 3 or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * later.
* License as published by the Free Software Foundation; either * See the COPYING-README file.
* 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/>.
*
*/ */
class OC_OCS_Result{ class OC_OCS_Result{
...@@ -27,6 +17,8 @@ class OC_OCS_Result{ ...@@ -27,6 +17,8 @@ class OC_OCS_Result{
/** /**
* create the OCS_Result object * create the OCS_Result object
* @param mixed $data the data to return * @param mixed $data the data to return
* @param int $code
* @param null|string $message
*/ */
public function __construct($data=null, $code=100, $message=null) { public function __construct($data=null, $code=100, $message=null) {
if ($data === null) { if ($data === null) {
...@@ -44,7 +36,7 @@ class OC_OCS_Result{ ...@@ -44,7 +36,7 @@ class OC_OCS_Result{
* optionally set the total number of items available * optionally set the total number of items available
* @param int $items * @param int $items
*/ */
public function setTotalItems(int $items) { public function setTotalItems($items) {
$this->items = $items; $this->items = $items;
} }
...@@ -52,7 +44,7 @@ class OC_OCS_Result{ ...@@ -52,7 +44,7 @@ class OC_OCS_Result{
* optionally set the the number of items per page * optionally set the the number of items per page
* @param int $items * @param int $items
*/ */
public function setItemsPerPage(int $items) { public function setItemsPerPage($items) {
$this->perPage = $items; $this->perPage = $items;
} }
...@@ -92,7 +84,7 @@ class OC_OCS_Result{ ...@@ -92,7 +84,7 @@ class OC_OCS_Result{
} }
/** /**
* return bool if the method succedded * return bool Whether the method succeeded
* @return bool * @return bool
*/ */
public function succeeded() { public function succeeded() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment