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; } }