FriendContract
Table of Contents
Methods
-
getFriendIds()
: array<string|int, mixed>
-
getFriendship()
: int
-
getUsersForMention()
: Collection
-
isFriend()
: bool
getFriendIds()
public
getFriendIds(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getFriendship()
public
getFriendship(User $context, User $user) : int
Parameters
-
$context
: User
-
-
$user
: User
-
public
getUsersForMention(array<string|int, mixed> $ids) : Collection
Parameters
-
$ids
: array<string|int, mixed>
-
isFriend()
public
isFriend(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-