@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @param string $user_dn The user DN for which to infer the rules |
66 | 66 | * @param array $ownerships The owned groups for the user DN |
67 | - * @return array The roles of the given user |
|
67 | + * @return string[] The roles of the given user |
|
68 | 68 | */ |
69 | 69 | private function getRoles($user_dn, $ownerships) |
70 | 70 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * Returns all groups (OUs) with their common names |
42 | 42 | * |
43 | 43 | * @param array $fields A list of fields we want to return from the search |
44 | - * @return bool|\Zend\Ldap\Collection |
|
44 | + * @return Collection |
|
45 | 45 | * @throws LdapException |
46 | 46 | */ |
47 | 47 | public function getGroups($fields = ['cn']) |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * Retrieve the members of the given group |
157 | 157 | * |
158 | 158 | * @param string $group_ou OU of the group |
159 | - * @return bool|Collection |
|
159 | + * @return Collection |
|
160 | 160 | */ |
161 | 161 | public function getOwners($group_ou) |
162 | 162 | { |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | * Retrieves all members for the given group CN |
168 | 168 | * |
169 | 169 | * @param string $group_ou The common name of the group for which we want to retrieve the members |
170 | - * @param array $fields A list of fields we want to return from the search |
|
171 | - * @return bool|\Zend\Ldap\Collection |
|
170 | + * @param string[] $fields A list of fields we want to return from the search |
|
171 | + * @return Collection |
|
172 | 172 | * @throws LdapException |
173 | 173 | */ |
174 | 174 | public function getMembers($group_ou, $fields = ['member']) |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * Returns the groups owned by the user with the given dn |
226 | 226 | * |
227 | 227 | * @param string $user_dn The user DN for which we want to check |
228 | - * @return bool|Collection The groups owned by the user |
|
228 | + * @return Collection The groups owned by the user |
|
229 | 229 | */ |
230 | 230 | public function getOwnedGroups($user_dn) |
231 | 231 | { |
@@ -236,9 +236,9 @@ discard block |
||
236 | 236 | * Retrieves all memberships for the given DN |
237 | 237 | * |
238 | 238 | * @param string $user_dn The DN for which to get the memberships |
239 | - * @param array $fields A list of fields we want to return from the search |
|
239 | + * @param string[] $fields A list of fields we want to return from the search |
|
240 | 240 | * @param string $attribute The attribute which we use for filtering |
241 | - * @return bool|\Zend\Ldap\Collection |
|
241 | + * @return Collection |
|
242 | 242 | * @throws LdapException |
243 | 243 | */ |
244 | 244 | public function getMemberships($user_dn, $fields = ['cn'], $attribute = 'member') |