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

JsonRpcInvalidParamsException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

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