Error   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 42
rs 10
c 0
b 0
f 0
ccs 9
cts 9
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setMessage() 0 3 1
A setCode() 0 3 1
A getMessage() 0 3 1
A getCode() 0 3 1
1
<?php declare(strict_types = 1);
2
/**
3
 *
4
 * Copyright (C) 2018  Ross Mitchell
5
 *
6
 * This file is part of RossMitchell/UpdateCloudFlare.
7
 *
8
 * RossMitchell/UpdateCloudFlare is free software: you can redistribute
9
 * it and/or modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation, either version 3 of the
11
 * License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
 */
21
22
namespace RossMitchell\UpdateCloudFlare\Responses;
23
24
/**
25
 * Class Error
26
 * @package RossMitchell\UpdateCloudFlare\Responses
27
 */
28
class Error
29
{
30
    /**
31
     * @var int
32
     */
33
    private $code;
34
35
    /**
36
     * @var string
37
     */
38
    private $message;
39
40
    /**
41
     * @return int
42
     */
43 3
    public function getCode(): int
44
    {
45 3
        return $this->code;
46
    }
47
48
    /**
49
     * @param int $code
50
     */
51 7
    public function setCode(int $code): void
52
    {
53 7
        $this->code = $code;
54 7
    }
55
56
    /**
57
     * @return string
58
     */
59 7
    public function getMessage(): string
60
    {
61 7
        return $this->message;
62
    }
63
64
    /**
65
     * @param string $message
66
     */
67 7
    public function setMessage(string $message): void
68
    {
69 7
        $this->message = $message;
70 7
    }
71
72
73
}
74