Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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 | } |
||
49 | |||
50 | 1 | foreach ($this->getHeaders() as $key => $value) { |
|
51 | 1 | header($key . static::HEADER_DELIMITER . implode(static::HEADER_VALUE_DELIMITER, $value)); |
|
52 | } |
||
53 | |||
54 | 1 | echo $this->getBody(); |
|
55 | 1 | } |
|
57 |