generalObjectType; $roles = $this->wordpress->getRoles()->role_names; return (isset($roles[$objectId]) === true) ? $roles[$objectId] : $objectId; } public function isMember( AbstractUserGroup $userGroup, bool $lockRecursive, int|string $objectId, ?AssignmentInformation &$assignmentInformation = null ): bool { $isMember = $userGroup->isObjectAssignedToGroup( $this->generalObjectType, $objectId, $assignmentInformation ); $assignmentInformation = ($isMember === true) ? $assignmentInformation : null; return $isMember; } public function getFullObjects(AbstractUserGroup $userGroup, bool $lockRecursive, $objectType = null): array { $objectType = ($objectType === null) ? $this->generalObjectType : $objectType; return $this->getSimpleAssignedObjects($userGroup, $objectType); } }