Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GroupRepository
- {
- private $groupModel;
- public function __construct(Group $groupModel)
- {
- $this->groupModel = $groupModel;
- }
- public function create($creatorID, $image, $name, $description)
- {
- $this->groupModel->creator_id = $creatorID;
- $this->groupModel->image = $image;
- $this->groupModel->name = $name;
- $this->groupModel->description = $description;
- $this->groupModel->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement