Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 11 | public function getReport(): ReportInterface |
|
22 | { |
||
23 | 11 | if (null === $this->reportObject) { |
|
24 | 11 | $this->prepareForReport(); |
|
25 | /** @var \AlecRabbit\Tools\Reports\Contracts\ReportableInterface $that */ |
||
26 | 11 | $that = $this; // for static analyzers |
|
27 | 11 | $this->reportObject = Factory::makeReport($that); |
|
28 | } |
||
29 | return |
||
30 | 11 | $this->reportObject; |
|
31 | } |
||
45 |