ReportRegistry
Registry for report providers. The registry receives all services, tagged with "reports.report".
The tagging of status providers is automatically done based on the implemented ReportInterface.
Table of Contents
Methods
- __construct() : mixed
- getReport() : ReportInterface
- Get registered report by identifier
- getReports() : array<string|int, ReportInterface>
- Get all registered reports
- hasReport() : bool
- Whether a registered report exists for the identifier
Methods
__construct()
public
__construct(iterable<string|int, ReportInterface> $providers) : mixed
Parameters
- $providers : iterable<string|int, ReportInterface>
getReport()
Get registered report by identifier
public
getReport(string $identifier) : ReportInterface
Parameters
- $identifier : string
Return values
ReportInterfacegetReports()
Get all registered reports
public
getReports() : array<string|int, ReportInterface>
Return values
array<string|int, ReportInterface>hasReport()
Whether a registered report exists for the identifier
public
hasReport(string $identifier) : bool
Parameters
- $identifier : string