Completed
Push — master ( b27094...afbc6d )
by Julien
05:50 queued 01:38
created

Order   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 101
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 101
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 3 1
A setStatus() 0 5 1
A getId() 0 3 1
A getCurrency() 0 3 1
A setCurrency() 0 5 1
A setTotal() 0 5 1
A getTotal() 0 3 1
A setId() 0 5 1
1
<?php
2
3
namespace Mapado\RestClientSdk\Tests\Model\Hal;
4
5
/**
6
 * Class Order
7
 *
8
 * @author Julien Deniau <[email protected]>
9
 */
10
class Order
11
{
12
    private $id;
13
    private $total;
14
    private $currency;
15
    private $status;
16
17
    /**
18
     * Getter for id
19
     *
20
     * @return string
21
     */
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    /**
28
     * Setter for id
29
     *
30
     * @param string $id
31
     *
32
     * @return Order
33
     */
34
    public function setId($id)
35
    {
36
        $this->id = $id;
37
38
        return $this;
39
    }
40
41
    /**
42
     * Getter for total
43
     *
44
     * @return float
45
     */
46
    public function getTotal()
47
    {
48
        return $this->total;
49
    }
50
51
    /**
52
     * Setter for total
53
     *
54
     * @param float $total
55
     *
56
     * @return Order
57
     */
58
    public function setTotal($total)
59
    {
60
        $this->total = $total;
61
62
        return $this;
63
    }
64
65
    /**
66
     * Getter for currency
67
     *
68
     * @return string
69
     */
70
    public function getCurrency()
71
    {
72
        return $this->currency;
73
    }
74
75
    /**
76
     * Setter for currency
77
     *
78
     * @param string $currency
79
     *
80
     * @return Order
81
     */
82
    public function setCurrency($currency)
83
    {
84
        $this->currency = $currency;
85
86
        return $this;
87
    }
88
89
    /**
90
     * Getter for status
91
     *
92
     * @return string
93
     */
94
    public function getStatus()
95
    {
96
        return $this->status;
97
    }
98
99
    /**
100
     * Setter for status
101
     *
102
     * @param string $status
103
     *
104
     * @return Order
105
     */
106
    public function setStatus($status)
107
    {
108
        $this->status = $status;
109
110
        return $this;
111
    }
112
}
113