1 | <?php |
||
16 | class ParameterPart extends MimeLiteralPart |
||
17 | { |
||
18 | /** |
||
19 | * @var string the name of the parameter |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * @var string the RFC-1766 language tag if set. |
||
25 | */ |
||
26 | protected $language; |
||
27 | |||
28 | /** |
||
29 | * Constructs a ParameterPart out of a name/value pair. The name and |
||
30 | * value are both mime-decoded if necessary. |
||
31 | * |
||
32 | * If $language is provided, $name and $value are not mime-decoded. Instead, |
||
33 | * they're taken as literals as part of a SplitParameterToken. |
||
34 | * |
||
35 | * @param CharsetConverter $charsetConverter |
||
36 | * @param string $name |
||
37 | * @param string $value |
||
38 | * @param string $language |
||
39 | */ |
||
40 | 5 | public function __construct(CharsetConverter $charsetConverter, $name, $value, $language = null) |
|
52 | |||
53 | /** |
||
54 | * Returns the name of the parameter. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 4 | public function getName() |
|
62 | |||
63 | /** |
||
64 | * Returns the RFC-1766 (or subset) language tag, if the parameter is a |
||
65 | * split RFC-2231 part with a language tag set. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 1 | public function getLanguage() |
|
73 | } |
||
74 |