1 | <?php |
||
7 | class HeaderCollection extends BaseCollection |
||
8 | { |
||
9 | /** |
||
10 | * @param array $headerData |
||
11 | * |
||
12 | * @return HeaderCollection |
||
13 | */ |
||
14 | public static function fromArray(array $headerData) |
||
24 | |||
25 | /** |
||
26 | * @param Header $header |
||
27 | */ |
||
28 | public function addHeader(Header $header) |
||
29 | { |
||
30 | $this->addElement($header); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return Header |
||
35 | */ |
||
36 | public function current() |
||
37 | { |
||
38 | return $this->getCurrent(); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param HeaderKey $searchKey |
||
43 | * |
||
44 | * @throws HeaderNotFoundException |
||
45 | * |
||
46 | * @return Header |
||
47 | */ |
||
48 | public function getHeader(HeaderKey $searchKey) |
||
58 | |||
59 | /** |
||
60 | * @param HeaderKey $searchKey |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | public function headerKeyExists(HeaderKey $searchKey) |
||
72 | |||
73 | /** |
||
74 | * @param Header $searchHeader |
||
75 | * |
||
76 | * @return bool |
||
77 | */ |
||
78 | public function headerExists(Header $searchHeader) |
||
88 | } |
||
89 |