Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
11 | abstract class Report implements ReportInterface |
||
12 | { |
||
13 | abstract protected static function getFormatter(): FormatterInterface; |
||
14 | |||
15 | abstract public function buildOn(ReportableInterface $reportable): ReportInterface; |
||
16 | |||
17 | /** {@inheritdoc} */ |
||
18 | public function __toString(): string |
||
19 | { |
||
20 | return |
||
21 | static::getFormatter()->process($this); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $expected |
||
26 | * @param ReportableInterface $reportable |
||
27 | */ |
||
28 | protected function wrongReportable(string $expected, ReportableInterface $reportable): void |
||
31 | } |
||
32 | } |
||
33 |