ReportValidator
in package
FinalYes
Service.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- validateReport() : void
- Validate new report.
- createValidator() : Validator
- Create validator.
Properties
$repository
private
ReportRepository
$repository
$validationFactory
private
ValidationFactory
$validationFactory
Methods
__construct()
The constructor.
public
__construct(ReportRepository $repository, ValidationFactory $validationFactory) : mixed
Parameters
- $repository : ReportRepository
-
The repository
- $validationFactory : ValidationFactory
-
The validation
validateReport()
Validate new report.
public
validateReport(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
-
The data
Tags
createValidator()
Create validator.
private
createValidator() : Validator
Return values
Validator —The validator