1 | <?php |
||
8 | final class QuotedPrintableStream implements StreamInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var StreamInterface |
||
12 | */ |
||
13 | private $decoratedStream; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $lineLength; |
||
19 | |||
20 | /** |
||
21 | * @var resource |
||
22 | */ |
||
23 | private $filter; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $lineBreak; |
||
29 | |||
30 | /** |
||
31 | * @param resource $resource |
||
32 | * @param int $lineLength |
||
33 | * @param string $lineBreak |
||
34 | */ |
||
35 | 24 | public function __construct($resource, int $lineLength = 75, string $lineBreak = "\r\n") |
|
43 | |||
44 | /** |
||
45 | * @param string $string |
||
46 | * @param int $lineLength |
||
47 | * @param string $lineBreak |
||
48 | * @return QuotedPrintableStream |
||
49 | */ |
||
50 | 23 | public static function fromString(string $string, int $lineLength = 75, string $lineBreak = "\r\n"): QuotedPrintableStream |
|
66 | |||
67 | 24 | private function applyFilter(): void |
|
85 | |||
86 | 15 | private function removeFilter(): void |
|
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | 14 | public function __toString(): string |
|
101 | |||
102 | public function close(): void |
||
106 | |||
107 | /** |
||
108 | * @return mixed |
||
109 | */ |
||
110 | public function detach() |
||
114 | |||
115 | /** |
||
116 | * @return int|null |
||
117 | */ |
||
118 | 9 | public function getSize(): ?int |
|
122 | |||
123 | /** |
||
124 | * @return int |
||
125 | * @throws \RuntimeException |
||
126 | */ |
||
127 | 1 | public function tell(): int |
|
131 | |||
132 | /** |
||
133 | * @return bool |
||
134 | */ |
||
135 | 4 | public function eof(): bool |
|
139 | |||
140 | /** |
||
141 | * @return bool |
||
142 | */ |
||
143 | public function isSeekable(): bool |
||
147 | |||
148 | /** |
||
149 | * @param int $offset |
||
150 | * @param int $whence |
||
151 | * @return int |
||
152 | */ |
||
153 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
157 | |||
158 | /** |
||
159 | * @return bool |
||
160 | */ |
||
161 | 15 | public function rewind(): bool |
|
171 | |||
172 | /** |
||
173 | * @return bool |
||
174 | */ |
||
175 | 1 | public function isWritable(): bool |
|
179 | |||
180 | /** |
||
181 | * @param string $string |
||
182 | * @return int |
||
183 | */ |
||
184 | 1 | public function write($string): int |
|
188 | |||
189 | /** |
||
190 | * @return bool |
||
191 | */ |
||
192 | public function isReadable(): bool |
||
196 | |||
197 | /** |
||
198 | * @param int $length |
||
199 | * @return string |
||
200 | */ |
||
201 | 5 | public function read(int $length): string |
|
205 | |||
206 | /** |
||
207 | * @return string |
||
208 | */ |
||
209 | 2 | public function getContents(): string |
|
213 | |||
214 | /** |
||
215 | * @param array<int, string> $keys |
||
216 | * @return array<string, mixed> |
||
|
|||
217 | */ |
||
218 | 13 | public function getMetadata(array $keys = []): array |
|
222 | } |
||
223 |
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.