| Total Complexity | 2 | 
| Total Lines | 23 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | 8 | public function __construct(string $methodName) | |
| 18 |     { | ||
| 19 | 8 | $this->methodName = $methodName; | |
| 20 | |||
| 21 | 8 | parent::__construct(self::CODE, 'Method not found'); | |
| 22 | } | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @return string | ||
| 26 | */ | ||
| 27 | 1 | public function getMethodName() : string | |
| 30 | } | ||
| 31 | } | ||
| 32 |