Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class ADecoder |
||
14 | { |
||
15 | /** @var string[] */ |
||
16 | protected array $contentEncoded = []; |
||
17 | |||
18 | 7 | public function getHeaderKey(): string |
|
21 | } |
||
22 | |||
23 | 6 | public function canDecode(string $header): bool |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * Extract encodings from its compiled content header |
||
36 | * @param string $headers |
||
37 | * @return string[] |
||
38 | */ |
||
39 | 6 | protected function decodings(string $headers): array |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * In and Out are strings - everything in memory |
||
51 | * @param string $content |
||
52 | * @return string |
||
53 | */ |
||
54 | abstract public function processDecode(string $content): string; |
||
55 | } |
||
56 |