| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
namespace Webklex\PHPIMAP\Decoder; |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
interface DecoderInterface { |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
public function __construct(array $options = [], string $fallback_encoding = 'UTF-8'); |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
public function decode(array|string|null $value, ?string $encoding = null): mixed; |
| 37 |
|
| 38 |
public function mimeHeaderDecode(string $text): array; |
| 39 |
|
| 40 |
public function convertEncoding(string $str, string $from = "ISO-8859-2", string $to = "UTF-8"): mixed; |
| 41 |
|
| 42 |
public function getEncoding(object|string $structure): string; |
| 43 |
|
| 44 |
public function getOptions(): array; |
| 45 |
|
| 46 |
public function setOptions(array $config): static; |
| 47 |
|
| 48 |
public function getFallbackEncoding(): string; |
| 49 |
|
| 50 |
public function setFallbackEncoding(string $fallback_encoding): static; |
| 51 |
|
| 52 |
} |