PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/UserGroup/UserGroupFactory.php +4 -15 2.3.162.3.2 View file →
@@ -19,9 +19,9 @@
19 19 private Database $database,
20 20 private MainConfig $config,
21 21 private Util $util,
22 22 private ObjectHandler $objectHandler,
23 - private AssignedObjectsLoader $assignedObjectsLoader
23 + private AssignmentInformationFactory $assignmentInformationFactory
24 24 ) {
25 25 }
26 26
27 27 /**
@@ -26,9 +26,9 @@
26 26
27 27 /**
28 28 * @throws UserGroupTypeException
29 29 */
30 - public function createUserGroup(int|string|null $id = null): UserGroup
30 + public function createUserGroup(null|int|string $id = null): UserGroup
31 31 {
32 32 return new UserGroup(
33 33 $this->php,
34 34 $this->wordpress,
@@ -35,9 +35,9 @@
35 35 $this->database,
36 36 $this->config,
37 37 $this->util,
38 38 $this->objectHandler,
39 - $this->assignedObjectsLoader,
39 + $this->assignmentInformationFactory,
40 40 $id
41 41 );
42 42 }
43 43
@@ -43,19 +43,8 @@
43 43
44 44 /**
45 45 * @throws UserGroupTypeException
46 46 */
47 - public function createUserGroupFromDatabaseRow(object $databaseUserGroup): UserGroup
48 - {
49 - $userGroup = $this->createUserGroup();
50 - $userGroup->assignDatabaseValues($databaseUserGroup);
51 -
52 - return $userGroup;
53 - }
54 -
55 - /**
56 - * @throws UserGroupTypeException
57 - */
58 47 public function createDynamicUserGroup(string $type, int|string $id): DynamicUserGroup
59 48 {
60 49 return new DynamicUserGroup(
61 50 $this->php,
@@ -63,9 +52,9 @@
63 52 $this->database,
64 53 $this->config,
65 54 $this->util,
66 55 $this->objectHandler,
67 - $this->assignedObjectsLoader,
56 + $this->assignmentInformationFactory,
68 57 $type,
69 58 $id
70 59 );
71 60 }