| 1 | <?php |
||
| 5 | class Response |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int|string |
||
| 9 | */ |
||
| 10 | private $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var mixed |
||
| 14 | */ |
||
| 15 | private $result; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int|string $id |
||
| 19 | * @param mixed $result |
||
| 20 | */ |
||
| 21 | 5 | public function __construct($id, $result) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return int|string |
||
| 29 | */ |
||
| 30 | 5 | public function getId() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | 2 | public function getResult() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 2 | public function write() |
|
| 53 | } |
||
| 54 |