| 1 | <?php |
||
| 7 | class Response |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $content; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $status; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $headers; |
||
| 23 | |||
| 24 | public function __construct($content = '', $status = 200, $headers = []) |
||
| 30 | |||
| 31 | public static function fromArray(array $arrayConfig) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | public function getStatus() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getHeaders() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getContent() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return OptionsResolver |
||
| 70 | */ |
||
| 71 | private static function createArrayResponseResolver() |
||
| 81 | } |
||
| 82 |