Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | abstract class AbstractFormatter implements FormatterInterface |
||
8 | { |
||
9 | /** @var int */ |
||
10 | protected $options = 0; |
||
11 | |||
12 | /** {@inheritDoc} */ |
||
13 | 1 | public function __construct(?int $options = null) |
|
16 | 1 | } |
|
17 | |||
18 | abstract public function process(Formattable $data): string; |
||
19 | |||
20 | /** |
||
21 | * @param Formattable $data |
||
22 | * @param string $class |
||
23 | * @return string |
||
24 | */ |
||
25 | 1 | protected function errorMessage(Formattable $data, string $class): string |
|
31 |