RpcNumberException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
/**
4
 * Created by PhpStorm.
5
 * Project: json-rpc-server
6
 * User: sv
7
 * Date: 14.01.2021
8
 * Time: 21:04
9
 */
10
11
declare(strict_types=1);
12
13
namespace Onnov\JsonRpcServer\Exception;
14
15
use RuntimeException;
16
17
/**
18
 * Class RpcNumberException
19
 *
20
 * @package Onnov\JsonRpcServer\Exception
21
 */
22
class RpcNumberException extends RuntimeException
23
{
24
    /**
25
     * RpcNumberException constructor.
26
     *
27
     * @param int $code
28
     */
29
    public function __construct(int $code)
30
    {
31
        parent::__construct('', $code);
32
    }
33
}
34