UserRelationRepositoryInterface
in
Interface UserRelation.
Tags
Table of Contents
Methods
- activeRelation() : UserRelation
- createRelationShip() : UserRelation
- deleteRelation() : bool
- getRelations() : Collection
- updateRelationShip() : UserRelation
- viewRelationShips() : Paginator
Methods
activeRelation()
public
activeRelation(int $id) : UserRelation
Parameters
- $id : int
Return values
UserRelationcreateRelationShip()
public
createRelationShip(User $user, array<string|int, mixed> $attributes) : UserRelation
Parameters
- $user : User
- $attributes : array<string|int, mixed>
Return values
UserRelationdeleteRelation()
public
deleteRelation(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolgetRelations()
public
getRelations() : Collection
Return values
CollectionupdateRelationShip()
public
updateRelationShip(User $user, array<string|int, mixed> $attributes) : UserRelation
Parameters
- $user : User
- $attributes : array<string|int, mixed>
Return values
UserRelationviewRelationShips()
public
viewRelationShips(User $user, array<string|int, mixed> $attributes) : Paginator
Parameters
- $user : User
- $attributes : array<string|int, mixed>