@@ -60,6 +60,9 @@ |
||
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param boolean $id |
|
| 65 | + */ |
|
| 63 | 66 | public function setId($id = null) { |
| 64 | 67 | |
| 65 | 68 | if ( is_null($id) || is_int($id) || is_bool($id) ) { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $key Encryption key |
| 36 | 36 | * |
| 37 | - * @return \Comodojo\RpcClient\RpcClient |
|
| 37 | + * @return Encryption |
|
| 38 | 38 | * |
| 39 | 39 | * @throws \Exception |
| 40 | 40 | */ |
@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @return boolean |
|
| 53 | + */ |
|
| 51 | 54 | final public function getEncryption() { |
| 52 | 55 | |
| 53 | 56 | return $this->encryption; |
@@ -104,6 +104,10 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $data |
|
| 109 | + * @param boolean $key |
|
| 110 | + */ |
|
| 107 | 111 | private function can($data, $key) { |
| 108 | 112 | |
| 109 | 113 | if ( !empty($key) && is_string($key) ) { |
@@ -124,6 +128,10 @@ discard block |
||
| 124 | 128 | |
| 125 | 129 | } |
| 126 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $data |
|
| 133 | + * @param boolean $key |
|
| 134 | + */ |
|
| 127 | 135 | private function uncan($data, $key) { |
| 128 | 136 | |
| 129 | 137 | if ( !empty($key) && is_string($key) ) { |
@@ -53,6 +53,9 @@ |
||
| 53 | 53 | |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $response |
|
| 58 | + */ |
|
| 56 | 59 | public function decode($response) { |
| 57 | 60 | |
| 58 | 61 | try { |