Failed Conditions
Pull Request — master (#1)
by Yo
05:58 queued 03:23
created

JsonRpcMethodNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
namespace Yoanm\JsonRpcServer\Domain\Exception;
3
4
/**
5
 * Class JsonRpcMethodNotFoundException
6
 */
7
class JsonRpcMethodNotFoundException extends JsonRpcException
8
{
9
    const CODE = -32601;
10
11
    /**
12
     * @param string $methodName
13
     */
14
    public function __construct(string $methodName)
15
    {
16
        $data = [
17
            'method' => $methodName,
18
        ];
19
20
        parent::__construct(self::CODE, 'Method not found', $data);
21
    }
22
}
23