ReportItemRepositoryInterface
in
Interface ReportItem.
Tags
Table of Contents
Methods
- canReport() : bool
- createReport() : bool|ReportItem
- getReportItem() : mixed
Methods
canReport()
public
canReport(User $context, int $itemId, string $itemType) : bool
Parameters
- $context : User
- $itemId : int
- $itemType : string
Return values
boolcreateReport()
public
createReport(User $context, array<string, mixed> $attributes) : bool|ReportItem
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
bool|ReportItemgetReportItem()
public
getReportItem(array<string|int, mixed> $conditions) : mixed
Parameters
- $conditions : array<string|int, mixed>