Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait TDecoding |
||
11 | { |
||
12 | /** @var ADecoder[] */ |
||
13 | protected array $streamsDecoders = []; |
||
14 | |||
15 | 1 | public function addStreamDecoder(ADecoder $decoder): self |
|
16 | { |
||
17 | 1 | $this->streamsDecoders[] = $decoder; |
|
18 | 1 | return $this; |
|
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param resource $content stream handler |
||
23 | * @return resource |
||
24 | */ |
||
25 | 4 | public function processStreamDecode($content) |
|
34 | } |
||
35 | |||
36 | 1 | protected function getStreamHeader(string $key, ?string $default = null): ?string |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return array<string, array<string>> |
||
44 | */ |
||
45 | abstract public function getAllHeaders(): array; |
||
46 | } |
||
47 |