Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | trait Reportable |
||
12 | { |
||
13 | /** @var ReportInterface|null */ |
||
14 | protected $reportObject; |
||
15 | |||
16 | /** @var bool */ |
||
17 | private $launched = false; |
||
18 | |||
19 | /** |
||
20 | * @param bool $rebuild Rebuild report object |
||
21 | * @return ReportInterface |
||
22 | */ |
||
23 | 14 | public function report(bool $rebuild = true): ReportInterface |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @deprecated use report() instead |
||
42 | * @param bool $rebuild Rebuild report object |
||
43 | 5 | * @return ReportInterface |
|
44 | */ |
||
45 | 5 | public function getReport(bool $rebuild = true): ReportInterface |
|
46 | { |
||
47 | return $this->report($rebuild); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | 9 | */ |
|
53 | public function isNotLaunched(): bool |
||
56 | } |
||
57 | |||
58 | |||
59 | /** |
||
60 | * Makes all necessary actions before report |
||
61 | */ |
||
62 | protected function prepareForReport(): void |
||
66 |