Conditions | 2 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
62 | public function headerExists(Header $searchHeader) |
||
63 | { |
||
64 | try { |
||
65 | $header = $this->getHeader($searchHeader->getKey()); |
||
66 | |||
67 | return $header->getValue()->asString() === $searchHeader->getValue()->asString(); |
||
68 | } catch (HeaderNotFoundException $exception) { |
||
69 | return false; |
||
70 | } |
||
71 | } |
||
72 | } |
||
73 |