From dd794abd73115de1b2ed8e95f30c2fdbbdb448a9 Mon Sep 17 00:00:00 2001 From: Joe Bottigliero Date: Tue, 26 May 2015 20:20:41 -0500 Subject: [PATCH 1/2] DataObject->(get|set)ContentLength Docblocks Updates content length getter and setter docblocks to better reflect what can be returned due to various population methods. --- lib/OpenCloud/ObjectStore/Resource/DataObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenCloud/ObjectStore/Resource/DataObject.php b/lib/OpenCloud/ObjectStore/Resource/DataObject.php index c4841c89f..942338b80 100644 --- a/lib/OpenCloud/ObjectStore/Resource/DataObject.php +++ b/lib/OpenCloud/ObjectStore/Resource/DataObject.php @@ -265,7 +265,7 @@ public function getContentType() } /** - * @param $contentType int + * @param $contentType mixed * @return $this */ public function setContentLength($contentLength) @@ -276,7 +276,7 @@ public function setContentLength($contentLength) } /** - * @return int + * @return mixed */ public function getContentLength() { From f250bad24c6da46baa56e3e51292c0b400b500d5 Mon Sep 17 00:00:00 2001 From: Joe Bottigliero Date: Tue, 26 May 2015 20:26:39 -0500 Subject: [PATCH 2/2] documentation - parameter name fix --- lib/OpenCloud/ObjectStore/Resource/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenCloud/ObjectStore/Resource/DataObject.php b/lib/OpenCloud/ObjectStore/Resource/DataObject.php index 942338b80..731d1c370 100644 --- a/lib/OpenCloud/ObjectStore/Resource/DataObject.php +++ b/lib/OpenCloud/ObjectStore/Resource/DataObject.php @@ -265,7 +265,7 @@ public function getContentType() } /** - * @param $contentType mixed + * @param $contentLength mixed * @return $this */ public function setContentLength($contentLength)