Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | trait Reportable |
||
14 | { |
||
15 | |||
16 | protected $reportObject; |
||
17 | |||
18 | /** |
||
19 | * @return ReportInterface |
||
20 | */ |
||
21 | 8 | public function report(): ReportInterface |
|
22 | { |
||
23 | 8 | if (null === $this->reportObject) { |
|
24 | 8 | $this->prepareForReport(); |
|
25 | 8 | $this->reportObject = ReportFactory::createReport($this); |
|
|
|||
26 | } |
||
27 | return |
||
28 | 8 | $this->reportObject; |
|
29 | } |
||
30 | |||
31 | 6 | protected function prepareForReport(): void |
|
33 | 6 | } |
|
34 | } |
||
35 |