Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | trait HasReport |
||
9 | { |
||
10 | /** @var ReportInterface */ |
||
11 | protected $report; |
||
12 | |||
13 | /** |
||
14 | * @param bool $rebuild Rebuild report object |
||
15 | * @return ReportInterface |
||
16 | * @throws \Exception |
||
17 | */ |
||
18 | 36 | public function report(bool $rebuild = true): ReportInterface |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Makes all necessary actions before report |
||
33 | */ |
||
34 | 36 | protected function beforeReport(): void |
|
35 | { |
||
36 | 36 | } |
|
37 | |||
38 | /** |
||
39 | * Checks if all conditions needed for report are met |
||
40 | */ |
||
41 | 22 | protected function meetConditions(): void |
|
43 | 22 | } |
|
44 | } |
||
45 |