-
-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathDecoderInterface.php
52 lines (40 loc) · 1.18 KB
/
DecoderInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
* File: DecoderInterface.php
* Category: -
* Author: M.Goldenbaum
* Created: 12.04.24 20:25
* Updated: -
*
* Description:
* -
*/
namespace Webklex\PHPIMAP\Decoder;
/**
* Interface DecoderInterface
*
* @package Webklex\PHPIMAP\Decoder
*/
interface DecoderInterface {
/**
* DecoderInterface constructor.
* @param array $options
* @param string $fallback_encoding
*/
public function __construct(array $options = [], string $fallback_encoding = 'UTF-8');
/**
* Decode a given value
*
* @param array|string|null $value
* @param string|null $encoding
* @return string|array|null
*/
public function decode(array|string|null $value, ?string $encoding = null): mixed;
public function mimeHeaderDecode(string $text): array;
public function convertEncoding(string $str, string $from = "ISO-8859-2", string $to = "UTF-8"): mixed;
public function getEncoding(object|string $structure): string;
public function getOptions(): array;
public function setOptions(array $config): static;
public function getFallbackEncoding(): string;
public function setFallbackEncoding(string $fallback_encoding): static;
}