1 | <?php |
||
8 | final class QuotedPrintableDecodedStream 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 | 9 | public function __construct($resource) |
|
29 | |||
30 | /** |
||
31 | * @param string $string |
||
32 | * @return QuotedPrintableDecodedStream |
||
33 | */ |
||
34 | 9 | public static function fromString(string $string): QuotedPrintableDecodedStream |
|
44 | |||
45 | 9 | 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 |
|
96 | |||
97 | /** |
||
98 | * @return int |
||
99 | * @throws \RuntimeException |
||
100 | */ |
||
101 | 1 | public function tell(): int |
|
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | public function eof(): bool |
||
113 | |||
114 | /** |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function isSeekable(): bool |
||
121 | |||
122 | /** |
||
123 | * @param int $offset |
||
124 | * @param int $whence |
||
125 | * @return int |
||
126 | */ |
||
127 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
131 | |||
132 | /** |
||
133 | * @return bool |
||
134 | */ |
||
135 | 4 | public function rewind(): bool |
|
145 | |||
146 | /** |
||
147 | * @return bool |
||
148 | */ |
||
149 | 1 | public function isWritable(): bool |
|
153 | |||
154 | /** |
||
155 | * @param string $string |
||
156 | * @return int |
||
157 | */ |
||
158 | 1 | public function write($string): int |
|
162 | |||
163 | /** |
||
164 | * @return bool |
||
165 | */ |
||
166 | public function isReadable(): bool |
||
170 | |||
171 | /** |
||
172 | * @param int $length |
||
173 | * @return string |
||
174 | */ |
||
175 | 2 | public function read(int $length): string |
|
179 | |||
180 | /** |
||
181 | * @return string |
||
182 | */ |
||
183 | 3 | public function getContents(): string |
|
187 | |||
188 | /** |
||
189 | * @param array<int, string> $keys |
||
190 | * @return array<string, mixed> |
||
|
|||
191 | */ |
||
192 | public function getMetadata(array $keys = []): array |
||
196 | } |
||
197 |
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.