| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | 1 | public function send() |
|
| 45 | { |
||
| 46 | 1 | if ($this->getProtocolVersion() && $this->getStatusCode()) { |
|
| 47 | 1 | header(static::VERSION_DELIMITER . $this->getProtocolVersion() . ' ' . $this->getStatusCode() . ' ' . $this->getReasonPhrase()); |
|
| 48 | 1 | } |
|
| 49 | |||
| 50 | 1 | foreach ($this->getHeaders() as $key => $value) { |
|
| 51 | 1 | header($key . static::HEADER_DELIMITER . implode(static::HEADER_VALUE_DELIMITER, $value)); |
|
| 52 | 1 | } |
|
| 53 | |||
| 54 | 1 | echo $this->getBody(); |
|
| 55 | 1 | } |
|
| 56 | } |
||
| 57 |