summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2014-03-10 09:31:30 +0100
committerThomas Tanghus <thomas@tanghus.net>2014-03-10 09:31:30 +0100
commita1aacc18dff11351b555304a5361a73e13684bd1 (patch)
tree4e823b2989e47c1b9f27f8170bf868c77fe0fa3d /lib/public/appframework
parent8f6ea900f2f75bfdfadb7f484ec64ac7ea78623c (diff)
downloadnextcloud-server-a1aacc18dff11351b555304a5361a73e13684bd1.tar.gz
nextcloud-server-a1aacc18dff11351b555304a5361a73e13684bd1.zip
Add @return PHPDocs
Diffstat (limited to 'lib/public/appframework')
-rw-r--r--lib/public/appframework/http/jsonresponse.php1
-rw-r--r--lib/public/appframework/http/response.php4
-rw-r--r--lib/public/appframework/http/templateresponse.php2
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/appframework/http/jsonresponse.php b/lib/public/appframework/http/jsonresponse.php
index bcfe469ef1b..6628c4514d9 100644
--- a/lib/public/appframework/http/jsonresponse.php
+++ b/lib/public/appframework/http/jsonresponse.php
@@ -66,6 +66,7 @@ class JSONResponse extends Response {
* Sets values in the data json array
* @param array|object $data an array or object which will be transformed
* to JSON
+ * @return JSONResponse Reference to this object
*/
public function setData($data){
$this->data = $data;
diff --git a/lib/public/appframework/http/response.php b/lib/public/appframework/http/response.php
index e704acca7f0..45402d9b3b3 100644
--- a/lib/public/appframework/http/response.php
+++ b/lib/public/appframework/http/response.php
@@ -89,6 +89,7 @@ class Response {
* function
* @param string $name The name of the HTTP header
* @param string $value The value, null will delete it
+ * @return Response Reference to this object
*/
public function addHeader($name, $value) {
if(is_null($value)) {
@@ -133,6 +134,7 @@ class Response {
/**
* Set response status
* @param int $status a HTTP status code, see also the STATUS constants
+ * @return Response Reference to this object
*/
public function setStatus($status) {
$this->status = $status;
@@ -170,6 +172,7 @@ class Response {
/**
* Set the ETag
* @param string $ETag
+ * @return Response Reference to this object
*/
public function setETag($ETag) {
$this->ETag = $ETag;
@@ -181,6 +184,7 @@ class Response {
/**
* Set "last modified" date
* @param \DateTime $lastModified
+ * @return Response Reference to this object
*/
public function setLastModified($lastModified) {
$this->lastModified = $lastModified;
diff --git a/lib/public/appframework/http/templateresponse.php b/lib/public/appframework/http/templateresponse.php
index 1ae22dde7ff..f5baf788ada 100644
--- a/lib/public/appframework/http/templateresponse.php
+++ b/lib/public/appframework/http/templateresponse.php
@@ -74,6 +74,7 @@ class TemplateResponse extends Response {
* Sets template parameters
* @param array $params an array with key => value structure which sets template
* variables
+ * @return TemplateResponse Reference to this object
*/
public function setParams(array $params){
$this->params = $params;
@@ -106,6 +107,7 @@ class TemplateResponse extends Response {
* settings header and footer, user renders the normal
* normal page including footer and header and blank
* just renders the plain template
+ * @return TemplateResponse Reference to this object
*/
public function renderAs($renderAs){
$this->renderAs = $renderAs;