1 | <?php |
||
11 | final class MessageStream implements StreamInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var StreamInterface |
||
15 | */ |
||
16 | private $decoratedStream; |
||
17 | |||
18 | /** |
||
19 | * @param MessageInterface $message |
||
20 | */ |
||
21 | 57 | public function __construct(MessageInterface $message) |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 56 | public function __toString(): string |
|
68 | |||
69 | public function close(): void |
||
73 | |||
74 | /** |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function detach() |
||
81 | |||
82 | /** |
||
83 | * @return int|null |
||
84 | */ |
||
85 | public function getSize(): ?int |
||
89 | |||
90 | /** |
||
91 | * @return int |
||
92 | * @throws \RuntimeException |
||
93 | */ |
||
94 | public function tell(): int |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | 2 | public function eof(): bool |
|
106 | |||
107 | /** |
||
108 | * @return bool |
||
109 | */ |
||
110 | public function isSeekable(): bool |
||
114 | |||
115 | /** |
||
116 | * @param int $offset |
||
117 | * @param int $whence |
||
118 | * @return int |
||
119 | */ |
||
120 | public function seek(int $offset, int $whence = SEEK_SET): int |
||
124 | |||
125 | /** |
||
126 | * @return bool |
||
127 | */ |
||
128 | 2 | public function rewind(): bool |
|
132 | |||
133 | /** |
||
134 | * @return bool |
||
135 | */ |
||
136 | public function isWritable(): bool |
||
140 | |||
141 | /** |
||
142 | * @param string $string |
||
143 | * @return int |
||
144 | */ |
||
145 | public function write($string): int |
||
149 | |||
150 | /** |
||
151 | * @return bool |
||
152 | */ |
||
153 | public function isReadable(): bool |
||
157 | |||
158 | /** |
||
159 | * @param int $length |
||
160 | * @return string |
||
161 | */ |
||
162 | 2 | public function read(int $length): string |
|
166 | |||
167 | /** |
||
168 | * @return string |
||
169 | */ |
||
170 | public function getContents(): string |
||
174 | |||
175 | /** |
||
176 | * @param array<int, string> $keys |
||
177 | * @return array<string, mixed> |
||
|
|||
178 | */ |
||
179 | public function getMetadata(array $keys = []): array |
||
183 | } |
||
184 |
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.