1 | <?php |
||
11 | class NullProvider implements FormatterProvider |
||
12 | { |
||
13 | private Raw |
||
|
|||
14 | $raw; |
||
15 | |||
16 | 76 | public function __construct() |
|
17 | { |
||
18 | 76 | $this->raw = new Raw(); |
|
19 | 76 | } |
|
20 | |||
21 | public function hasFormatter(?string $index): bool |
||
22 | { |
||
23 | return false; |
||
24 | } |
||
25 | |||
26 | 52 | public function getFormatter(?string $fileExtension, ?string $index = null): Formatter |
|
27 | { |
||
28 | 52 | return $this->raw; |
|
29 | } |
||
30 | } |
||
31 |