From 53bb563a78f7468f0f89b769621e4e687af79ecf Mon Sep 17 00:00:00 2001 From: Budry Date: Mon, 18 Jan 2016 13:19:37 +0100 Subject: [PATCH] Data property is writable --- Flame/Rest/Resource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flame/Rest/Resource.php b/Flame/Rest/Resource.php index b398117..5f04d36 100644 --- a/Flame/Rest/Resource.php +++ b/Flame/Rest/Resource.php @@ -19,7 +19,7 @@ * @author Drahomír Hanák * * @property string $contentType Allowed result content type - * @property-read array $data + * @property array $data */ class Resource extends Object implements ArrayAccess, Serializable, IResource { @@ -63,7 +63,7 @@ public function setData($data) if(!is_array($data)) { $data = (array) $data; } - + $this->data = $data; return $this; } @@ -201,4 +201,4 @@ public function __unset($name) } -} \ No newline at end of file +}