Completed
Push — master ( 39b3fc...3ebb26 )
by Sergey
12:04 queued 07:06
created

RpcNumberException::__construct()   A

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
 * @package Onnov\JsonRpcServer\Exception
20
 */
21
class RpcNumberException extends RuntimeException
22
{
23
    /**
24
     * RpcNumberException constructor.
25
     * @param int $code
26
     */
27
    public function __construct(int $code)
28
    {
29
        parent::__construct('', $code);
30
    }
31
}
32