Error   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 33
rs 10
ccs 8
cts 8
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 3 1
A __construct() 0 4 1
A getMessage() 0 3 1
1
<?php
2
3
4
namespace talismanfr\psbbank\vo;
5
6
7
class Error
8
{
9
    /** @var int */
10
    private $code;
11
12
    /** @var string */
13
    private $message;
14
15
    /**
16
     * Error constructor.
17
     * @param int $code
18
     * @param string $message
19
     */
20 4
    public function __construct(int $code, string $message)
21
    {
22 4
        $this->code = $code;
23 4
        $this->message = $message;
24 4
    }
25
26
    /**
27
     * @return int
28
     */
29 2
    public function getCode(): int
30
    {
31 2
        return $this->code;
32
    }
33
34
    /**
35
     * @return string
36
     */
37 1
    public function getMessage(): string
38
    {
39 1
        return $this->message;
40
    }
41
42
43
44
}