1 | <?php |
||
10 | final class HeaderDecodedStream implements StreamInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var StreamInterface |
||
14 | */ |
||
15 | private $decoratedStream; |
||
16 | |||
17 | /** |
||
18 | * @param HeaderInterface $header |
||
19 | */ |
||
20 | 8 | public function __construct(HeaderInterface $header) |
|
24 | |||
25 | /** |
||
26 | * @param HeaderInterface $header |
||
27 | * @return StreamInterface |
||
28 | */ |
||
29 | 8 | private function calculateOptimalStream(HeaderInterface $header): StreamInterface |
|
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 3 | public function __toString(): string |
|
43 | |||
44 | public function close(): void |
||
48 | |||
49 | /** |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function detach() |
||
56 | |||
57 | /** |
||
58 | * @return int|null |
||
59 | */ |
||
60 | 1 | public function getSize(): ?int |
|
64 | |||
65 | /** |
||
66 | * @return int |
||
67 | * @throws \RuntimeException |
||
68 | */ |
||
69 | 1 | public function tell(): int |
|
73 | |||
74 | /** |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function eof(): bool |
||
81 | |||
82 | /** |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function isSeekable(): bool |
||
89 | |||
90 | /** |
||
91 | * @param int $offset |
||
92 | * @param int $whence |
||
93 | * @return int |
||
94 | */ |
||
95 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
99 | |||
100 | /** |
||
101 | * @return bool |
||
102 | */ |
||
103 | 1 | public function rewind(): bool |
|
107 | |||
108 | /** |
||
109 | * @return bool |
||
110 | */ |
||
111 | 1 | public function isWritable(): bool |
|
115 | |||
116 | /** |
||
117 | * @param string $string |
||
118 | * @return int |
||
119 | */ |
||
120 | 1 | public function write($string): int |
|
124 | |||
125 | /** |
||
126 | * @return bool |
||
127 | */ |
||
128 | public function isReadable(): bool |
||
132 | |||
133 | /** |
||
134 | * @param int $length |
||
135 | * @return string |
||
136 | */ |
||
137 | 1 | public function read(int $length): string |
|
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | 3 | public function getContents(): string |
|
149 | |||
150 | /** |
||
151 | * @param array<int, string> $keys |
||
152 | * @return array<string, mixed> |
||
|
|||
153 | */ |
||
154 | public function getMetadata(array $keys = []): array |
||
158 | } |
||
159 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.