| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public function __construct(ResponseInterface $response, $userAgent = '') |
||
| 24 | { |
||
| 25 | parent::__construct($userAgent); |
||
| 26 | $headers = []; |
||
| 27 | foreach ($response->getHeader(parent::HEADER_RULE_IDENTIFIER) as $name => $values) { |
||
| 28 | $headers[] = $name . ': ' . implode(' ', $values) . "\r\n"; |
||
| 29 | } |
||
| 30 | $this->parse($headers); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |