ErrorsInit   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * Errors initializer
4
 * User: moyo
5
 * Date: 19/01/2018
6
 * Time: 5:53 PM
7
 */
8
9
namespace Carno\RPC\Chips;
10
11
trait ErrorsInit
12
{
13
    /**
14
     * ErrorsInit constructor.
15
     * @param int $code
16
     * @param string $message
17
     */
18
    public function __construct(int $code, string $message = '')
19
    {
20
        parent::__construct($message, $code);
21
    }
22
}
23