| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | Database $database, |
| 28 | 28 | MainConfig $config, |
| 29 | 29 | Util $util, |
| 30 | 30 | ObjectHandler $objectHandler, |
| 31 | - AssignedObjectsLoader $assignedObjectsLoader, | |
| 31 | + AssignmentInformationFactory $assignmentInformationFactory, | |
| 32 | 32 | protected ?string $type, |
| 33 | 33 | int|string $id |
| 34 | 34 | ) { |
| 35 | 35 | parent::__construct( |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | $database, |
| 39 | 39 | $config, |
| 40 | 40 | $util, |
| 41 | 41 | $objectHandler, |
| 42 | - $assignedObjectsLoader, | |
| 42 | + $assignmentInformationFactory, | |
| 43 | 43 | $id |
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | 46 | if ($this->type !== self::USER_TYPE && $this->type !== self::ROLE_TYPE) { |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | /** |
| 78 | 78 | * @throws UserGroupAssignmentException |
| 79 | 79 | * @throws Exception |
| 80 | 80 | */ |
| 81 | - public function addObject(string $objectType, int|string|null $objectId, $fromDate = null, $toDate = null): bool | |
| 81 | + public function addObject(string $objectType, int|string $objectId, $fromDate = null, $toDate = null): bool | |
| 82 | 82 | { |
| 83 | 83 | if ($this->objectHandler->getGeneralObjectType($objectType) === ObjectHandler::GENERAL_USER_OBJECT_TYPE) { |
| 84 | 84 | throw new UserGroupAssignmentException('Dynamic user groups can\'t be assigned to user.'); |
| 85 | 85 | } |