AuthResponse   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 69
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setErrorDetails() 0 3 1
A setErrorString() 0 3 1
A getErrorString() 0 3 1
A setStatus() 0 3 1
A setErrorCode() 0 3 1
A getStatus() 0 3 1
A getErrorDetails() 0 3 1
A getErrorCode() 0 3 1
1
<?php
2
3
namespace AllDigitalRewards\WeGift\Entity;
4
5
class AuthResponse extends AbstractEntity
6
{
7
    protected string $error_code;
8
    protected string $error_details;
9
    protected string $error_string;
10
    protected string $status;
11
12
    /**
13
     * @return string
14
     */
15
    public function getErrorCode(): string
16
    {
17
        return $this->error_code;
18
    }
19
20
    /**
21
     * @param string $error_code
22
     */
23
    public function setErrorCode(string $error_code): void
24
    {
25
        $this->error_code = $error_code;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getErrorDetails(): string
32
    {
33
        return $this->error_details;
34
    }
35
36
    /**
37
     * @param string $error_details
38
     */
39
    public function setErrorDetails(string $error_details): void
40
    {
41
        $this->error_details = $error_details;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getErrorString(): string
48
    {
49
        return $this->error_string;
50
    }
51
52
    /**
53
     * @param string $error_string
54
     */
55
    public function setErrorString(string $error_string): void
56
    {
57
        $this->error_string = $error_string;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getStatus(): string
64
    {
65
        return $this->status;
66
    }
67
68
    /**
69
     * @param string $status
70
     */
71
    public function setStatus(string $status): void
72
    {
73
        $this->status = $status;
74
    }
75
}
76