1 | <?php |
||
9 | final class MimeBodyDecodedStream implements StreamInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var StreamInterface |
||
13 | */ |
||
14 | private $decoratedStream; |
||
15 | |||
16 | /** |
||
17 | * @param PartInterface $mimePart |
||
18 | */ |
||
19 | 20 | public function __construct(PartInterface $mimePart) |
|
23 | |||
24 | /** |
||
25 | * @param PartInterface $part |
||
26 | * @return StreamInterface |
||
27 | */ |
||
28 | 20 | private function calculateOptimalStream(PartInterface $part): StreamInterface |
|
49 | |||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 15 | public function __toString(): string |
|
58 | |||
59 | public function close(): void |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function detach() |
||
71 | |||
72 | /** |
||
73 | * @return int|null |
||
74 | */ |
||
75 | 1 | public function getSize(): ?int |
|
79 | |||
80 | /** |
||
81 | * @return int |
||
82 | * @throws \RuntimeException |
||
83 | */ |
||
84 | 1 | public function tell(): int |
|
88 | |||
89 | /** |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function eof(): bool |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function isSeekable(): bool |
||
104 | |||
105 | /** |
||
106 | * @param int $offset |
||
107 | * @param int $whence |
||
108 | * @return int |
||
109 | */ |
||
110 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
114 | |||
115 | /** |
||
116 | * @return bool |
||
117 | */ |
||
118 | 1 | public function rewind(): bool |
|
122 | |||
123 | /** |
||
124 | * @return bool |
||
125 | */ |
||
126 | 1 | public function isWritable(): bool |
|
130 | |||
131 | /** |
||
132 | * @param string $string |
||
133 | * @return int |
||
134 | */ |
||
135 | 1 | public function write($string): int |
|
139 | |||
140 | /** |
||
141 | * @return bool |
||
142 | */ |
||
143 | public function isReadable(): bool |
||
147 | |||
148 | /** |
||
149 | * @param int $length |
||
150 | * @return string |
||
151 | */ |
||
152 | 1 | public function read(int $length): string |
|
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | 2 | public function getContents(): string |
|
164 | |||
165 | /** |
||
166 | * @param array<int, string> $keys |
||
167 | * @return array<string, mixed> |
||
|
|||
168 | */ |
||
169 | public function getMetadata(array $keys = []): array |
||
173 | } |
||
174 |
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.