OrderHistory   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 49
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setDate() 0 5 1
A getDate() 0 3 1
A getAmount() 0 3 1
A setAmount() 0 4 1
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