From 2041810adbc6e663e4520337805c0003c77762e2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 31 Jan 2017 21:13:33 +0100 Subject: WIP --- src/Wallabag/GroupBundle/Entity/UserGroup.php | 126 ++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 src/Wallabag/GroupBundle/Entity/UserGroup.php (limited to 'src/Wallabag/GroupBundle/Entity/UserGroup.php') diff --git a/src/Wallabag/GroupBundle/Entity/UserGroup.php b/src/Wallabag/GroupBundle/Entity/UserGroup.php new file mode 100644 index 00000000..22d1400a --- /dev/null +++ b/src/Wallabag/GroupBundle/Entity/UserGroup.php @@ -0,0 +1,126 @@ +user = $user; + $this->group = $group; + $this->role = $role; + $this->accepted = $request; + } + + /** + * @return Group + */ + public function getGroup() + { + return $this->group; + } + + /** + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * @return User + */ + public function getUser() + { + return $this->user; + } + + /** + * @param int $role + * @return UserGroup + */ + public function setRole($role) + { + $this->role = $role; + return $this; + } + + /** + * @param bool $accepted + */ + public function setAccepted($accepted) + { + $this->accepted = $accepted; + } + + /** + * @return bool + */ + public function isAccepted() + { + return $this->accepted; + } + + public function setInvitation($invitation) + { + $this->invitation = $invitation; + } + + public function getInvitation() + { + return $this->invitation; + } +} -- cgit v1.2.3