13 namespace Fossology\UI\Api\Models;
37 $this->group_perm = intval($group_perm);
55 $this->group_perm = intval($group_perm);
74 return $this->group_perm;
82 return json_encode($this->
getArray());
90 public function getArray($version=ApiVersion::V1)
92 if ($version==ApiVersion::V2) {
94 'user' => $this->user->getArray($version),
95 'groupPerm' => intval($this->group_perm)
99 'user' => $this->user->getArray($version),
100 'group_perm' => intval($this->group_perm)
__construct($user, $group_perm)
setGroupPerm($group_perm)
getArray($version=ApiVersion::V1)