Created
December 8, 2016 11:57
-
-
Save JamesTheHacker/a43a7cb302b1953d0e861ff6dc13e1b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment