1 | <?php |
||
8 | final class Base64DecodedStream implements StreamInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var StreamInterface |
||
12 | */ |
||
13 | private $decoratedStream; |
||
14 | |||
15 | /** |
||
16 | * @var resource |
||
17 | */ |
||
18 | private $filter; |
||
19 | |||
20 | /** |
||
21 | * @param resource $resource |
||
22 | */ |
||
23 | 7 | public function __construct($resource) |
|
29 | |||
30 | /** |
||
31 | * @param string $string |
||
32 | * @return Base64DecodedStream |
||
33 | */ |
||
34 | 7 | public static function fromString(string $string): Base64DecodedStream |
|
44 | |||
45 | 7 | private function applyFilter(): void |
|
59 | |||
60 | 4 | private function removeFilter(): void |
|
66 | |||
67 | /** |
||
68 | * @return string |
||
69 | */ |
||
70 | 3 | public function __toString(): string |
|
75 | |||
76 | public function close(): void |
||
80 | |||
81 | /** |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function detach() |
||
88 | |||
89 | /** |
||
90 | * @return int|null |
||
91 | */ |
||
92 | 1 | public function getSize(): ?int |
|
109 | |||
110 | /** |
||
111 | * @return int |
||
112 | * @throws \RuntimeException |
||
113 | */ |
||
114 | 1 | public function tell(): int |
|
118 | |||
119 | /** |
||
120 | * @return bool |
||
121 | */ |
||
122 | public function eof(): bool |
||
126 | |||
127 | /** |
||
128 | * @return bool |
||
129 | */ |
||
130 | public function isSeekable(): bool |
||
134 | |||
135 | /** |
||
136 | * @param int $offset |
||
137 | * @param int $whence |
||
138 | * @return int |
||
139 | */ |
||
140 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
144 | |||
145 | /** |
||
146 | * @return bool |
||
147 | */ |
||
148 | 4 | public function rewind(): bool |
|
158 | |||
159 | /** |
||
160 | * @return bool |
||
161 | */ |
||
162 | 1 | public function isWritable(): bool |
|
166 | |||
167 | /** |
||
168 | * @param string $string |
||
169 | * @return int |
||
170 | */ |
||
171 | 1 | public function write($string): int |
|
175 | |||
176 | /** |
||
177 | * @return bool |
||
178 | */ |
||
179 | public function isReadable(): bool |
||
183 | |||
184 | /** |
||
185 | * @param int $length |
||
186 | * @return string |
||
187 | */ |
||
188 | 1 | public function read(int $length): string |
|
192 | |||
193 | /** |
||
194 | * @return string |
||
195 | */ |
||
196 | 2 | public function getContents(): string |
|
200 | |||
201 | /** |
||
202 | * @param array<int, string> $keys |
||
203 | * @return array<string, mixed> |
||
|
|||
204 | */ |
||
205 | public function getMetadata(array $keys = []): array |
||
209 | } |
||
210 |
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.