Passed
Push — master ( c5d235...fe52ec )
by Dedipyaman
01:34
created

RuleError   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 3 1
A __construct() 0 4 1
A getCode() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: dedipyaman
5
 * Date: 1/23/19
6
 * Time: 2:53 AM
7
 */
8
9
namespace Phypes\Error;
10
11
class RuleError implements Error
12
{
13
    private $code;
14
    private $message;
15
16
    public function __construct(int $code, string $message)
17
    {
18
        $this->code = $code;
19
        $this->message = $message;
20
    }
21
22
    public function getCode(): int
23
    {
24
        return $this->code;
25
    }
26
27
    public function getMessage(): string
28
    {
29
        return $this->message;
30
    }
31
}