OrderHistory::getAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pagantis\OrdersApiClient\Model\Order\User;
4
5
use Pagantis\OrdersApiClient\Model\AbstractModel;
6
7
/**
8
 * Class OrderHistory
9
 * @package Pagantis\OrdersApiClient\Model\Order\User
10
 */
11
class OrderHistory extends AbstractModel
12
{
13
    /**
14
     * @var int $amount
15
     */
16
    protected $amount;
17
18
    /**
19
     * @var string $date
20
     */
21
    protected $date;
22
23
    /**
24
     * @return int
25
     */
26
    public function getAmount()
27
    {
28
        return $this->amount;
29
    }
30
31
    /**
32
     * @param $amount
33
     *
34
     * @return $this
35
     */
36
    public function setAmount($amount)
37
    {
38
        $this->amount = $amount;
39
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getDate()
46
    {
47
        return $this->date;
48
    }
49
50
    /**
51
     * @param string $date
52
     *
53
     * @return OrderHistory
54
     */
55
    public function setDate($date)
56
    {
57
        $this->date = $this->checkDateFormat($date);
58
59
        return $this;
60
    }
61
}
62