From 01ccc8187defe7a86bb7d53e7f5d43f3e972972b Mon Sep 17 00:00:00 2001 From: Nikita Chernyi Date: Thu, 9 Jun 2016 09:03:59 +0300 Subject: [PATCH] Added 'return' to setData() --- src/GetSetTrait.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GetSetTrait.php b/src/GetSetTrait.php index bfadf82..260ddf9 100644 --- a/src/GetSetTrait.php +++ b/src/GetSetTrait.php @@ -56,5 +56,7 @@ public function getData($property) public function setData($property, $data = null) { $this->$property = $data; + + return $this; } }