1 | <?php |
||
19 | class ParameterHeader extends AbstractHeader |
||
20 | { |
||
21 | /** |
||
22 | * @var \ZBateson\MailMimeParser\Header\Part\ParameterPart[] key map of |
||
23 | * lower-case parameter names and associated ParameterParts. |
||
24 | */ |
||
25 | protected $parameters = []; |
||
26 | |||
27 | /** |
||
28 | * Returns a ParameterConsumer. |
||
29 | * |
||
30 | * @param ConsumerService $consumerService |
||
31 | * @return \ZBateson\MailMimeParser\Header\Consumer\AbstractConsumer |
||
32 | */ |
||
33 | 4 | protected function getConsumer(ConsumerService $consumerService) |
|
37 | |||
38 | /** |
||
39 | * Overridden to assign ParameterParts to a map of lower-case parameter |
||
40 | * names to ParameterParts. |
||
41 | * |
||
42 | * @param AbstractConsumer $consumer |
||
43 | */ |
||
44 | 4 | protected function setParseHeaderValue(AbstractConsumer $consumer) |
|
53 | |||
54 | /** |
||
55 | * Returns true if a parameter exists with the passed name. |
||
56 | * |
||
57 | * @param string $name |
||
58 | * @return boolean |
||
59 | */ |
||
60 | 3 | public function hasParameter($name) |
|
64 | |||
65 | /** |
||
66 | * Returns the value of the parameter with the given name, or $defaultValue |
||
67 | * if not set. |
||
68 | * |
||
69 | * @param string $name |
||
70 | * @param string $defaultValue |
||
71 | * @return string |
||
72 | */ |
||
73 | 3 | public function getValueFor($name, $defaultValue = null) |
|
80 | } |
||
81 |