|
@@ 259-271 (lines=13) @@
|
| 256 |
|
* @return bool |
| 257 |
|
* @throws Exception |
| 258 |
|
*/ |
| 259 |
|
public function deleteSignature($signature) { |
| 260 |
|
|
| 261 |
|
if ( !is_integer($signature) || !isset($this->signatures[$signature]) ) { |
| 262 |
|
|
| 263 |
|
throw new Exception("RPC method exception: invalid signature reference"); |
| 264 |
|
|
| 265 |
|
} |
| 266 |
|
|
| 267 |
|
unset($this->signatures[$signature]); |
| 268 |
|
|
| 269 |
|
return true; |
| 270 |
|
|
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
/** |
| 274 |
|
* Select a signature |
|
@@ 281-293 (lines=13) @@
|
| 278 |
|
* @return $this |
| 279 |
|
* @throws Exception |
| 280 |
|
*/ |
| 281 |
|
public function selectSignature($signature) { |
| 282 |
|
|
| 283 |
|
if ( !is_integer($signature) || !isset($this->signatures[$signature]) ) { |
| 284 |
|
|
| 285 |
|
throw new Exception("RPC method exception: invalid signature reference"); |
| 286 |
|
|
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
$this->current_signature = $signature; |
| 290 |
|
|
| 291 |
|
return $this; |
| 292 |
|
|
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
/** |
| 296 |
|
* Set the current signature's return type |