UserGenderRepositoryInterface
in
Interface UserGenderRepositoryInterface.
stub: /packages/repositories/interface.stub
Table of Contents
Methods
- createGender() : UserGender
- deleteGender() : bool
- findGenderByPhrase() : UserGender
- getForForms() : array<int, array<string, mixed>>
- getGenderOptions() : array<string|int, mixed>
- getSuggestion() : array<int, array<string, mixed>>
- updateGender() : UserGender
- viewAllGenders() : Collection
- viewGenders() : Paginator
- viewGendersForAdmin() : LengthAwarePaginator
Methods
createGender()
public
createGender(User $context, array<string, mixed> $attributes) : UserGender
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
UserGenderdeleteGender()
public
deleteGender(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolfindGenderByPhrase()
public
findGenderByPhrase(string $phrase) : UserGender
Parameters
- $phrase : string
Return values
UserGendergetForForms()
public
getForForms(User $context[, array<string, mixed>|null $where = null ]) : array<int, array<string, mixed>>
Parameters
- $context : User
- $where : array<string, mixed>|null = null
Return values
array<int, array<string, mixed>>getGenderOptions()
public
getGenderOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getSuggestion()
public
getSuggestion(array<string, mixed> $params) : array<int, array<string, mixed>>
Parameters
- $params : array<string, mixed>
Return values
array<int, array<string, mixed>>updateGender()
public
updateGender(User $context, int $id, array<string, mixed> $attributes) : UserGender
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Return values
UserGenderviewAllGenders()
public
viewAllGenders([array<string|int, mixed> $ids = [] ]) : Collection
Parameters
- $ids : array<string|int, mixed> = []
Return values
CollectionviewGenders()
public
viewGenders(User $context, array<string, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
PaginatorviewGendersForAdmin()
public
viewGendersForAdmin(User $context, array<string, mixed> $attributes) : LengthAwarePaginator
Parameters
- $context : User
- $attributes : array<string, mixed>