PaymentEvent::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
use DateTime;
6
7
/**
8
 * Class PaymentEvent
9
 *
10
 * @package CultureKings\Afterpay\Model\Merchant
11
 */
12
class PaymentEvent
13
{
14
    /**
15
     * @var DateTime
16
     */
17
    protected $created;
18
    /**
19
     * @var string
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $type;
26
27
    /**
28
     * @return DateTime
29
     */
30
    public function getCreated()
31
    {
32
        return $this->created;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getType()
47
    {
48
        return $this->type;
49
    }
50
51
    /**
52
     * @param DateTime $created
53
     * @return $this
54
     */
55
    public function setCreated(DateTime $created)
56
    {
57
        $this->created = $created;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @param string $id
64
     * @return $this
65
     */
66
    public function setId($id)
67
    {
68
        $this->id = $id;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @param string $type
75
     * @return $this
76
     */
77
    public function setType($type)
78
    {
79
        $this->type = $type;
80
81
        return $this;
82
    }
83
}
84