Order   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 137
Duplicated Lines 0 %

Importance

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

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getTotalPrice() 0 3 1
A getStatus() 0 3 1
A getCreatedBy() 0 3 1
A setTotalPrice() 0 3 1
A getId() 0 3 1
A setStatus() 0 3 1
A getInvoiceIds() 0 3 1
A setCreatedOn() 0 3 1
A setCreatedBy() 0 3 1
A getDescription() 0 3 1
A setId() 0 3 1
A setInvoiceIds() 0 3 1
A getIdempotencyKey() 0 3 1
A setDescription() 0 3 1
A setIdempotencyKey() 0 3 1
A getCreatedOn() 0 3 1
1
<?php
2
3
namespace AllDigitalRewards\WeGift\Entity;
4
5
class Order extends AbstractEntity
6
{
7
    protected string $created_by;
8
    protected string $created_on;
9
    protected string $description;
10
    protected string $id;
11
    protected string $idempotency_key;
12
    protected array $invoice_ids;
13
    protected string $status;
14
    protected float $total_price;
15
16
    /**
17
     * @return string
18
     */
19
    public function getCreatedBy(): string
20
    {
21
        return $this->created_by;
22
    }
23
24
    /**
25
     * @param string $created_by
26
     */
27
    public function setCreatedBy(string $created_by): void
28
    {
29
        $this->created_by = $created_by;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getCreatedOn(): string
36
    {
37
        return $this->created_on;
38
    }
39
40
    /**
41
     * @param string $created_on
42
     */
43
    public function setCreatedOn(string $created_on): void
44
    {
45
        $this->created_on = $created_on;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getDescription(): string
52
    {
53
        return $this->description;
54
    }
55
56
    /**
57
     * @param string $description
58
     */
59
    public function setDescription(string $description): void
60
    {
61
        $this->description = $description;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getId(): string
68
    {
69
        return $this->id;
70
    }
71
72
    /**
73
     * @param string $id
74
     */
75
    public function setId(string $id): void
76
    {
77
        $this->id = $id;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getIdempotencyKey(): string
84
    {
85
        return $this->idempotency_key;
86
    }
87
88
    /**
89
     * @param string $idempotency_key
90
     */
91
    public function setIdempotencyKey(string $idempotency_key): void
92
    {
93
        $this->idempotency_key = $idempotency_key;
94
    }
95
96
    /**
97
     * @return array
98
     */
99
    public function getInvoiceIds(): array
100
    {
101
        return $this->invoice_ids;
102
    }
103
104
    /**
105
     * @param array $invoice_ids
106
     */
107
    public function setInvoiceIds(array $invoice_ids): void
108
    {
109
        $this->invoice_ids = $invoice_ids;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getStatus(): string
116
    {
117
        return $this->status;
118
    }
119
120
    /**
121
     * @param string $status
122
     */
123
    public function setStatus(string $status): void
124
    {
125
        $this->status = $status;
126
    }
127
128
    /**
129
     * @return float
130
     */
131
    public function getTotalPrice(): float
132
    {
133
        return $this->total_price;
134
    }
135
136
    /**
137
     * @param float $total_price
138
     */
139
    public function setTotalPrice(float $total_price): void
140
    {
141
        $this->total_price = $total_price;
142
    }
143
}
144