| 1 | <?php |
||
| 8 | final class ContentTransferEncoding implements HeaderInterface |
||
| 9 | { |
||
| 10 | private const VALID_ENCODINGS = [ |
||
| 11 | '7bit' => true, |
||
| 12 | '8bit' => true, |
||
| 13 | 'binary' => true, |
||
| 14 | 'quoted-printable' => true, |
||
| 15 | 'base64' => true, |
||
| 16 | 'ietf-token' => true, |
||
| 17 | 'x-token' => true, |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $encoding; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $encoding |
||
| 27 | */ |
||
| 28 | 88 | public function __construct($encoding) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return HeaderName |
||
| 39 | */ |
||
| 40 | 88 | public function getName(): HeaderName |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return HeaderValue |
||
| 47 | */ |
||
| 48 | 40 | public function getValue(): HeaderValue |
|
| 52 | } |
||
| 53 |