1 | <?php |
||
5 | class SuccessfulResponse extends AbstractResponse |
||
6 | { |
||
7 | /** |
||
8 | * @var int |
||
9 | */ |
||
10 | protected $id; |
||
11 | |||
12 | /** |
||
13 | * @var mixed |
||
14 | */ |
||
15 | protected $result; |
||
16 | |||
17 | /** |
||
18 | * @param int $id |
||
19 | * @param mixed $result |
||
20 | */ |
||
21 | 12 | public function __construct($id, $result) |
|
26 | |||
27 | /** |
||
28 | * @return int |
||
29 | */ |
||
30 | 6 | public function id() |
|
34 | |||
35 | /** |
||
36 | * @return mixed |
||
37 | */ |
||
38 | 12 | public function result() |
|
42 | |||
43 | /** |
||
44 | * @return \stdClass |
||
45 | */ |
||
46 | 3 | public function jsonSerialize() |
|
56 | } |
||
57 |