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