Fix unexisting class and PHPDoc

You can't add int here as hint...
This commit is contained in:
Lukas Reschke 2014-09-15 17:08:56 +02:00
parent 07b14bcd4f
commit 4f0f7e35ca
1 changed files with 8 additions and 16 deletions

View File

@ -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{
/** /**
* 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{
* 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{
* 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{
} }
/** /**
* return bool if the method succedded * return bool Whether the method succeeded
* @return bool * @return bool
*/ */
public function succeeded() { public function succeeded() {