| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 0 | ||
| 1 | <?php namespace Comodojo\Dispatcher\Response; |
||
| 24 | class Status { |
||
| 25 | |||
| 26 | use ToStringTrait; |
||
| 27 | |||
| 28 | private $status_code = 200; |
||
| 29 | |||
| 30 | private $codes; |
||
| 31 | |||
| 32 | 7 | public function __construct() { |
|
| 33 | |||
| 34 | 7 | $this->codes = new HttpStatusCodes; |
|
| 35 | |||
| 36 | 7 | } |
|
| 37 | |||
| 38 | 8 | public function get() { |
|
| 41 | |||
| 42 | } |
||
| 43 | |||
| 44 | 5 | public function set($code) { |
|
| 55 | |||
| 56 | } |
||
| 57 | |||
| 58 | 1 | public function description($code=null) { |
|
| 67 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.