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 | 22 | public function __construct(PartInterface $mimePart) |
|
23 | |||
24 | /** |
||
25 | * @param PartInterface $part |
||
26 | * @return StreamInterface |
||
27 | */ |
||
28 | 22 | private function calculateOptimalStream(PartInterface $part): StreamInterface |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 17 | public function __toString(): string |
|
57 | |||
58 | public function close(): void |
||
62 | |||
63 | /** |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function detach() |
||
70 | |||
71 | /** |
||
72 | * @return int|null |
||
73 | */ |
||
74 | 1 | public function getSize(): ?int |
|
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | * @throws \RuntimeException |
||
82 | */ |
||
83 | 1 | public function tell(): int |
|
87 | |||
88 | /** |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function eof(): bool |
||
95 | |||
96 | /** |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function isSeekable(): bool |
||
103 | |||
104 | /** |
||
105 | * @param int $offset |
||
106 | * @param int $whence |
||
107 | * @return int |
||
108 | */ |
||
109 | 1 | public function seek(int $offset, int $whence = SEEK_SET): int |
|
113 | |||
114 | /** |
||
115 | * @return bool |
||
116 | */ |
||
117 | 1 | public function rewind(): bool |
|
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | 1 | public function isWritable(): bool |
|
129 | |||
130 | /** |
||
131 | * @param string $string |
||
132 | * @return int |
||
133 | */ |
||
134 | 1 | public function write($string): int |
|
138 | |||
139 | /** |
||
140 | * @return bool |
||
141 | */ |
||
142 | public function isReadable(): bool |
||
146 | |||
147 | /** |
||
148 | * @param int $length |
||
149 | * @return string |
||
150 | */ |
||
151 | 1 | public function read(int $length): string |
|
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | 2 | public function getContents(): string |
|
163 | |||
164 | /** |
||
165 | * @param array<int, string> $keys |
||
166 | * @return array<string, mixed> |
||
|
|||
167 | */ |
||
168 | public function getMetadata(array $keys = []): array |
||
172 | } |
||
173 |
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.