. */ namespace SP\DataModel; /** * Class AccountPermission * * @package SP\DataModel */ class AccountPermission { /** * @var array */ private $usersView = []; /** * @var array */ private $usersEdit = []; /** * @var array */ private $userGroupsView = []; /** * @var array */ private $userGroupsEdit = []; /** * @return array */ public function getUsersView(): array { return $this->usersView; } /** * @param array $usersView * * @return AccountPermission */ public function setUsersView(array $usersView) { $this->usersView = $usersView; return $this; } /** * @return array */ public function getUsersEdit(): array { return $this->usersEdit; } /** * @param array $usersEdit * * @return AccountPermission */ public function setUsersEdit(array $usersEdit) { $this->usersEdit = $usersEdit; return $this; } /** * @return array */ public function getUserGroupsView(): array { return $this->userGroupsView; } /** * @param array $userGroupsView * * @return AccountPermission */ public function setUserGroupsView(array $userGroupsView) { $this->userGroupsView = $userGroupsView; return $this; } /** * @return array */ public function getUserGroupsEdit(): array { return $this->userGroupsEdit; } /** * @param array $userGroupsEdit * * @return AccountPermission */ public function setUserGroupsEdit(array $userGroupsEdit) { $this->userGroupsEdit = $userGroupsEdit; return $this; } /** * @return bool */ public function hasItems() { return count($this->usersView) > 0 || count($this->usersEdit) > 0 || count($this->userGroupsView) > 0 || count($this->userGroupsEdit) > 0; } }