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 |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 3 | public function __toString(): string |
|
46 | |||
47 | public function close(): void |
||
51 | |||
52 | /** |
||
53 | * @return mixed |
||
54 | */ |
||
55 | public function detach() |
||
59 | |||
60 | /** |
||
61 | * @return int|null |
||
62 | */ |
||
63 | 1 | public function getSize(): ?int |
|
67 | |||
68 | /** |
||
69 | * @return int |
||
70 | * @throws \RuntimeException |
||
71 | */ |
||
72 | 1 | public function tell(): int |
|
76 | |||
77 | /** |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function eof(): bool |
||
84 | |||
85 | /** |
||
86 | * @return bool |
||
87 | */ |
||
88 | public function isSeekable(): bool |
||
92 | |||
93 | /** |
||
94 | * @param int $offset |
||
95 | * @param int $whence |
||
96 | * @return int |
||
97 | */ |
||
98 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | 1 | public function rewind(): bool |
|
110 | |||
111 | /** |
||
112 | * @return bool |
||
113 | */ |
||
114 | 1 | public function isWritable(): bool |
|
118 | |||
119 | /** |
||
120 | * @param string $string |
||
121 | * @return int |
||
122 | */ |
||
123 | 1 | public function write($string): int |
|
127 | |||
128 | /** |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function isReadable(): bool |
||
135 | |||
136 | /** |
||
137 | * @param int $length |
||
138 | * @return string |
||
139 | */ |
||
140 | 1 | public function read(int $length): string |
|
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | 3 | public function getContents(): string |
|
152 | |||
153 | /** |
||
154 | * @param array<int, string> $keys |
||
155 | * @return array<string, mixed> |
||
|
|||
156 | */ |
||
157 | public function getMetadata(array $keys = []): array |
||
161 | } |
||
162 |
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.