You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/DirectorySync.php
+11-20Lines changed: 11 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,11 @@ class DirectorySync
20
20
* @param null|string $before Directory ID to look before
21
21
* @param null|string $after Directory ID to look after
22
22
* @param null|string $organizationId Unique ID for an organization
23
-
* @param \WorkOS\Resource\Order $order The Order in which to paginate records
23
+
* @param Resource\Order $order The Order in which to paginate records
24
24
*
25
25
* @throws Exception\WorkOSException
26
26
*
27
-
* @return array An array containing the following:
28
-
* null|string Directory ID to use as before cursor
29
-
* null|string Directory ID to use as after cursor
30
-
* array \WorkOS\Resource\Directory instances
27
+
* @return array{?string, ?string, Resource\Directory[]} An array containing the Directory ID to use as before and after cursor, and an array of Directory instances
31
28
*/
32
29
publicfunctionlistDirectories(
33
30
$domain = null,
@@ -74,14 +71,11 @@ public function listDirectories(
74
71
* @param int $limit Maximum number of records to return
75
72
* @param null|string $before Directory Group ID to look before
76
73
* @param null|string $after Directory Group ID to look after
77
-
* @param \WorkOS\Resource\Order $order The Order in which to paginate records
74
+
* @param Resource\Order $order The Order in which to paginate records
78
75
*
79
76
* @throws Exception\WorkOSException
80
77
*
81
-
* @return array An array containing the following:
82
-
* null|string Directory Group ID to use as before cursor
83
-
* null|string Directory Group ID to use as after cursor
84
-
* array \WorkOS\Resource\DirectoryGroup instances
78
+
* @return array{?string, ?string, Resource\DirectoryGroup[]} An array containing the Directory Group ID to use as before and after cursor, and an array of Directory Group instances
85
79
*/
86
80
publicfunctionlistGroups(
87
81
$directory = null,
@@ -130,7 +124,7 @@ public function listGroups(
130
124
*
131
125
* @throws Exception\WorkOSException
132
126
*
133
-
* @return \WorkOS\Resource\DirectoryGroup
127
+
* @return Resource\DirectoryGroup
134
128
*/
135
129
publicfunctiongetGroup($directoryGroup)
136
130
{
@@ -155,14 +149,11 @@ public function getGroup($directoryGroup)
155
149
* @param int $limit Maximum number of records to return
156
150
* @param null|string $before Directory User ID to look before
157
151
* @param null|string $after Directory User ID to look after
158
-
* @param \WorkOS\Resource\Order $order The Order in which to paginate records
152
+
* @param Resource\Order $order The Order in which to paginate records
159
153
*
160
-
* @throws Exception\WorkOSException
154
+
* @return array{?string, ?string, Resource\DirectoryUser[]} An array containing the Directory User ID to use as before and after cursor, and an array of Directory User instances
161
155
*
162
-
* @return array An array containing the following:
163
-
* null|string Directory User ID to use as before cursor
164
-
* null|string Directory User ID to use as after cursor
165
-
* array \WorkOS\Resource\DirectoryUser instances
156
+
* @throws Exception\WorkOSException
166
157
*/
167
158
publicfunctionlistUsers(
168
159
$directory = null,
@@ -211,7 +202,7 @@ public function listUsers(
211
202
*
212
203
* @throws Exception\WorkOSException
213
204
*
214
-
* @return \WorkOS\Resource\DirectoryUser
205
+
* @return Resource\DirectoryUser
215
206
*/
216
207
publicfunctiongetUser($directoryUser)
217
208
{
@@ -235,7 +226,7 @@ public function getUser($directoryUser)
235
226
*
236
227
* @throws Exception\WorkOSException
237
228
*
238
-
* @return \WorkOS\Resource\Response
229
+
* @return Resource\Response
239
230
*/
240
231
publicfunctiondeleteDirectory($directory)
241
232
{
@@ -259,7 +250,7 @@ public function deleteDirectory($directory)
Copy file name to clipboardExpand all lines: lib/Organizations.php
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,11 @@ class Organizations
19
19
* @param int $limit Maximum number of records to return
20
20
* @param null|string $before Organization ID to look before
21
21
* @param null|string $after Organization ID to look after
22
-
* @param \WorkOS\Resource\Order $order The Order in which to paginate records
22
+
* @param Resource\Order $order The Order in which to paginate records
23
23
*
24
-
* @throws Exception\WorkOSException
24
+
* @return array{?string, ?string, Resource\Organization[]} An array containing the Organization ID to use as before and after cursor, and an array of Organization instances
25
25
*
26
-
* @return array An array containing the following:
27
-
* null|string Organization ID to use as before cursor
28
-
* null|string Organization ID to use as after cursor
29
-
* array \WorkOS\Resource\Organization instances
26
+
* @throws Exception\WorkOSException
30
27
*/
31
28
publicfunctionlistOrganizations(
32
29
$domains = null,
@@ -73,7 +70,7 @@ public function listOrganizations(
0 commit comments