Completed
Pull Request — master (#53)
by Julien
02:22
created

Order::setTotal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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