00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00016 final class MailEncoding extends Enumeration
00017 {
00018 const SEVEN_BITS = 0x01;
00019 const EIGHT_BITS = 0x02;
00020 const BASE64 = 0x03;
00021 const QUOTED = 0x04;
00022
00023 protected $names = array(
00024 self::SEVEN_BITS => '7bit',
00025 self::EIGHT_BITS => '8bit',
00026 self::BASE64 => 'base64',
00027 self::QUOTED => 'quoted-printable'
00028 );
00029
00033 public static function seven()
00034 {
00035 return new self(self::SEVEN_BITS);
00036 }
00037
00041 public static function eight()
00042 {
00043 return new self(self::EIGHT_BITS);
00044 }
00045
00049 public static function base64()
00050 {
00051 return new self(self::BASE64);
00052 }
00053
00057 public static function quoted()
00058 {
00059 return new self(self::QUOTED);
00060 }
00061 }
00062 ?>