OrderDetails   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 86
rs 10
wmc 10

10 Methods

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