Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class GroupRepository
  2. {
  3. private $groupModel;
  4.  
  5. public function __construct(Group $groupModel)
  6. {
  7. $this->groupModel = $groupModel;
  8. }
  9.  
  10. public function create($creatorID, $image, $name, $description)
  11. {
  12. $this->groupModel->creator_id = $creatorID;
  13. $this->groupModel->image = $image;
  14. $this->groupModel->name = $name;
  15. $this->groupModel->description = $description;
  16. $this->groupModel->save();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement