ReportAdd
in package
FinalYes
Service.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- addReport() : int
- Add
Properties
$reportValidator
private
ReportValidator
$reportValidator
$repository
private
ReportRepository
$repository
Methods
__construct()
The constructor.
public
__construct(ReportRepository $repository, ReportValidator $reportValidator) : mixed
Parameters
- $repository : ReportRepository
-
The repository
- $reportValidator : ReportValidator
addReport()
Add
public
addReport(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
-
The user id
Return values
int —The user data