forked from paquettg/string-encoder
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProxyEncoderInterface.php
More file actions
30 lines (17 loc) · 899 Bytes
/
ProxyEncoderInterface.php
File metadata and controls
30 lines (17 loc) · 899 Bytes
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
<?php
declare(strict_types=1);
namespace StringEncoder\Contracts;
use StringEncoder\Encoder as EncoderImplementation;
interface ProxyEncoderInterface
{
public static function mountFromEncoding(string $targetEncoding, ?string $sourceEncoding = null): void;
public static function mount(string $className = 'Encoder', ?EncoderImplementation $encoder = null): bool;
public static function getMountedEncoder(): ?EncoderImplementation;
public static function setOptions(OptionsInterface $options): EncoderInterface;
public static function unload(): void;
public static function getTargetEncoding(): ?string;
public static function setTargetEncoding(string $encoding): void;
public static function getSourceEncoding(): ?string;
public static function setSourceEncoding(string $encoding): void;
public static function convert(): ConvertReadInterface;
}