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