| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Comodojo\RpcServer\Introspection; |
||
| 34 | 12 | final public static function execute(Parameters $params) { |
|
| 35 | |||
| 36 | 12 | $asked_method = $params->get('method'); |
|
| 37 | |||
| 38 | 12 | $method = $params->methods()->get($asked_method); |
|
|
|
|||
| 39 | |||
| 40 | 12 | if ( is_null($method) ) throw new RpcException("Method not found", -32601); |
|
| 41 | |||
| 42 | 12 | return $method->getDescription(); |
|
| 43 | |||
| 47 |