| 1 | <?php |
||
| 8 | class RpcRequest implements RpcRequestInterface |
||
| 9 | { |
||
| 10 | const VERSION = '2.0'; |
||
| 11 | |||
| 12 | public $id; |
||
| 13 | public $method; |
||
| 14 | public $attributes; |
||
| 15 | |||
| 16 | public function __construct($id = null, $method = null, array $attributes = []) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return int|string |
||
| 25 | */ |
||
| 26 | public function getId() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param int|string $id |
||
| 33 | */ |
||
| 34 | public function setId($id) |
||
| 38 | |||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getMethod() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $method |
||
| 50 | */ |
||
| 51 | public function setMethod($method) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getVersion() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param $key |
||
| 66 | * @return mixed |
||
| 67 | */ |
||
| 68 | public function get($key) |
||
| 72 | |||
| 73 | public function export() |
||
| 84 | } |