php, $this->wordpress, $this->database, $this->config, $this->util, $this->objectHandler, $this->assignedObjectsLoader, $id ); } /** * @throws UserGroupTypeException */ public function createUserGroupFromDatabaseRow(object $databaseUserGroup): UserGroup { $userGroup = $this->createUserGroup(); $userGroup->assignDatabaseValues($databaseUserGroup); return $userGroup; } /** * @throws UserGroupTypeException */ public function createDynamicUserGroup(string $type, int|string $id): DynamicUserGroup { return new DynamicUserGroup( $this->php, $this->wordpress, $this->database, $this->config, $this->util, $this->objectHandler, $this->assignedObjectsLoader, $type, $id ); } }