1 | <?php |
||
7 | class SubRequestResponse extends Response { |
||
8 | |||
9 | /** |
||
10 | * The request result. |
||
11 | * |
||
12 | * @var mixed |
||
13 | */ |
||
14 | protected $result; |
||
15 | |||
16 | /** |
||
17 | * SubrequestResponse constructor. |
||
18 | * |
||
19 | * @param mixed $result |
||
20 | * The request result. |
||
21 | * @param int $status |
||
22 | * The response status code. |
||
23 | * @param array $headers |
||
24 | * An array of response headers. |
||
25 | */ |
||
26 | public function __construct(array $result, $status = 200, array $headers = []) { |
||
30 | |||
31 | /** |
||
32 | * Gets the request result. |
||
33 | * |
||
34 | * @return mixed |
||
35 | * The request result. |
||
36 | */ |
||
37 | public function getResult() { |
||
40 | |||
41 | } |