mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
25 lines
566 B
PHP
25 lines
566 B
PHP
|
<?php namespace PhpMimeMailParser\Contracts;
|
||
|
|
||
|
interface CharsetManager
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Decode the string from Charset
|
||
|
*
|
||
|
* @param string $encodedString The string in its original encoded state
|
||
|
* @param string $charset The Charset header of the part.
|
||
|
*
|
||
|
* @return string The decoded string
|
||
|
*/
|
||
|
public function decodeCharset($encodedString, $charset);
|
||
|
|
||
|
/**
|
||
|
* Get charset alias
|
||
|
*
|
||
|
* @param string $charset .
|
||
|
*
|
||
|
* @return string The charset alias
|
||
|
*/
|
||
|
public function getCharsetAlias($charset);
|
||
|
}
|