| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class JsonRpcMethodNotFoundException extends JsonRpcException |
||
| 8 | { |
||
| 9 | const CODE = -32601; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | private $methodName; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $methodName |
||
| 16 | */ |
||
| 17 | 2 | public function __construct(string $methodName) |
|
| 18 | { |
||
| 19 | 2 | $this->methodName = $methodName; |
|
| 20 | |||
| 21 | 2 | parent::__construct(self::CODE, 'Method not found'); |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 1 | public function getMethodName() |
|
| 30 | } |
||
| 31 | } |
||
| 32 |