Completed
Pull Request — master (#26)
by Dominik
02:16 queued 50s
created

EmailTrafficStatistics::setAction()   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 Azine\MailgunWebhooksBundle\Entity;
4
5
/**
6
 * EmailTrafficStatistics
7
 */
8
class EmailTrafficStatistics
9
{
10
    const SPAM_ALERT_SENT = 'spam_alert_sent';
11
    /**
12
     * @var integer
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 integer
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * Set action
38
     *
39
     * @param  string       $action
40
     * @return EmailTrafficStatistics
41
     */
42
    public function setAction($action)
43
    {
44
        $this->action = $action;
45
46
        return $this;
47
    }
48
49
    /**
50
     * Get $action
51
     *
52
     * @return string
53
     */
54
    public function getAction()
55
    {
56
        return $this->action;
57
    }
58
59
    /**
60
     * Set created
61
     *
62
     * @param  \DateTime $created
63
     * @return EmailTrafficStatistics
64
     */
65
    public function setCreated($created)
66
    {
67
        $this->created = $created;
68
69
        return $this;
70
    }
71
72
    /**
73
     * Get created
74
     *
75
     * @return \DateTime
76
     */
77
    public function getCreated()
78
    {
79
        return $this->created;
80
    }
81
}