Skip to content

Commit 0971d40

Browse files
committed
docs: add doc comments
1 parent c6475c4 commit 0971d40

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Models/UserIdentityModel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ public function getIdentityBySecret(string $type, ?string $secret): ?UserIdentit
203203
}
204204

205205
/**
206+
* Returns all identities.
207+
*
206208
* @return UserIdentity[]
207209
*/
208210
public function getIdentities(User $user): array
@@ -220,6 +222,9 @@ public function getIdentitiesByUserIds(array $userIds): array
220222
return $this->whereIn('user_id', $userIds)->orderBy($this->primaryKey)->findAll();
221223
}
222224

225+
/**
226+
* Returns the first identity of the type.
227+
*/
223228
public function getIdentityByType(User $user, string $type): ?UserIdentity
224229
{
225230
return $this->where('user_id', $user->id)
@@ -229,6 +234,8 @@ public function getIdentityByType(User $user, string $type): ?UserIdentity
229234
}
230235

231236
/**
237+
* Returns all identities for the specific types.
238+
*
232239
* @param string[] $types
233240
*
234241
* @return UserIdentity[]

0 commit comments

Comments
 (0)