Copied!

ReportServiceInterface

ReportServiceInterface.php : 14
Interface

Entry point for every consumer of report data, in and outside this package.

Methods

publichasReport()

ReportServiceInterface.php : 16
public hasReport(string $reportId) : bool

Parameters

Name Type Default value Description
$reportId string - -

Return values

bool

publicrun()

ReportServiceInterface.php : 29

Runs the report with the given identifier. Parameters are coerced and validated against the report's definitions before the report executes.

public run(string $reportId[, array<string, mixed> $parameters = [] ]) : array<int, object>

Parameters

Name Type Default value Description
$reportId string - -
$parameters array<string, mixed> []

raw parameter values, e.g. query-string or JSON input

Return values

array<int, object>

rows of ReportInterface::getRowClass()

Tags
Throws
ReportNotFoundException
Throws
ReportValidationException