Debian Codegraph @

lib/3rdParty/composer/webklex/php-imap/src/Decoder/DecoderInterface.php

raw symbols SCIP
1 <?php
2 /*
3 * File: DecoderInterface.php
4 * Category: -
5 * Author: M.Goldenbaum
6 * Created: 12.04.24 20:25
7 * Updated: -
8 *
9 * Description:
10 * -
11 */
12
13 namespace Webklex\PHPIMAP\Decoder;
14
15 /**
16 * Interface DecoderInterface
17 *
18 * @package Webklex\PHPIMAP\Decoder
19 */
20 interface DecoderInterface {
21
22 /**
23 * DecoderInterface constructor.
24 * @param array $options
25 * @param string $fallback_encoding
26 */
27 public function __construct(array $options = [], string $fallback_encoding = 'UTF-8');
28
29 /**
30 * Decode a given value
31 *
32 * @param array|string|null $value
33 * @param string|null $encoding
34 * @return string|array|null
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 }