1 | <?php |
||
12 | class Report |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var FilterReportInterface[] |
||
17 | */ |
||
18 | protected $filterReports; |
||
19 | |||
20 | /** |
||
21 | * @var ServerRequestInterface |
||
22 | */ |
||
23 | protected $request; |
||
24 | |||
25 | /** |
||
26 | * @param FilterReportInterface[] $filterReports |
||
27 | * @param ServerRequestInterface $request |
||
28 | */ |
||
29 | public function __construct(array $filterReports, ServerRequestInterface $request) |
||
34 | |||
35 | /** |
||
36 | * Calculate the total impact of the contained filter reports. |
||
37 | * |
||
38 | * @return int |
||
39 | */ |
||
40 | public function getTotalImpact() |
||
46 | |||
47 | /** |
||
48 | * Export the report to a human-readable string. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function __toString() |
||
59 | } |