EmailTrafficStatistics::getAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Azine\MailgunWebhooksBundle\Entity;
4
5
/**
6
 * EmailTrafficStatistics.
7
 */
8
class EmailTrafficStatistics
9
{
10
    const SPAM_ALERT_SENT = 'spam_alert_sent';
11
    /**
12
     * @var int
13
     */
14
    private $id;
15
16
    /**
17
     * @var string
18
     */
19
    private $action;
20
21
    /**
22
     * @var \DateTime
23
     */
24
    private $created;
25
26
    /**
27
     * Get id.
28
     *
29
     * @return int
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * Set action.
38
     *
39
     * @param string $action
40
     *
41
     * @return EmailTrafficStatistics
42
     */
43
    public function setAction($action)
44
    {
45
        $this->action = $action;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Get $action.
52
     *
53
     * @return string
54
     */
55
    public function getAction()
56
    {
57
        return $this->action;
58
    }
59
60
    /**
61
     * Set created.
62
     *
63
     * @param \DateTime $created
64
     *
65
     * @return EmailTrafficStatistics
66
     */
67
    public function setCreated($created)
68
    {
69
        $this->created = $created;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get created.
76
     *
77
     * @return \DateTime
78
     */
79
    public function getCreated()
80
    {
81
        return $this->created;
82
    }
83
}
84