Skip to content

Commit

Permalink
Added 'return' to setData()
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshazi committed Jun 9, 2016
1 parent 4ad019a commit 01ccc81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GetSetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ public function getData($property)
public function setData($property, $data = null)
{
$this->$property = $data;

return $this;
}
}

0 comments on commit 01ccc81

Please sign in to comment.