MailgunCustomVariable::__construct()   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 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
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
 * MailgunCustomVariable.
7
 */
8
class MailgunCustomVariable
9
{
10
    /**
11
     * @param MailgunEvent $event
12
     */
13
    public function __construct(MailgunEvent $event)
14
    {
15
        $this->setEvent($event);
16
    }
17
18
    ///////////////////////////////////////////////////////////////////
19
    // generated stuff only below this line.
20
    // @codeCoverageIgnoreStart
21
    ///////////////////////////////////////////////////////////////////
22
23
    /**
24
     * @var int
25
     */
26
    private $id;
27
28
    /**
29
     * @var int
30
     */
31
    private $eventId;
32
33
    /**
34
     * @var int
35
     */
36
    private $variableName;
37
38
    /**
39
     * @var array
40
     */
41
    private $content;
42
43
    /**
44
     * @var \Azine\MailgunWebhooksBundle\Entity\MailgunEvent
45
     */
46
    private $event;
47
48
    /**
49
     * Get id.
50
     *
51
     * @return int
52
     */
53
    public function getId()
54
    {
55
        return $this->id;
56
    }
57
58
    /**
59
     * Set eventId.
60
     *
61
     * @param int $eventId
62
     *
63
     * @return MailgunCustomVariable
64
     */
65
    public function setEventId($eventId)
66
    {
67
        $this->eventId = $eventId;
68
69
        return $this;
70
    }
71
72
    /**
73
     * Get eventId.
74
     *
75
     * @return int
76
     */
77
    public function getEventId()
78
    {
79
        return $this->eventId;
80
    }
81
82
    /**
83
     * Set variableName.
84
     *
85
     * @param int $variableName
86
     *
87
     * @return MailgunCustomVariable
88
     */
89
    public function setVariableName($variableName)
90
    {
91
        $this->variableName = $variableName;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Get variableName.
98
     *
99
     * @return int
100
     */
101
    public function getVariableName()
102
    {
103
        return $this->variableName;
104
    }
105
106
    /**
107
     * Set content.
108
     *
109
     * @param array $content
110
     *
111
     * @return MailgunCustomVariable
112
     */
113
    public function setContent($content)
114
    {
115
        $this->content = $content;
116
117
        return $this;
118
    }
119
120
    /**
121
     * Get content.
122
     *
123
     * @return array
124
     */
125
    public function getContent()
126
    {
127
        return $this->content;
128
    }
129
130
    /**
131
     * Set event.
132
     *
133
     * @param \Azine\MailgunWebhooksBundle\Entity\MailgunEvent $event
134
     *
135
     * @return MailgunCustomVariable
136
     */
137
    public function setEvent(MailgunEvent $event = null)
138
    {
139
        $this->event = $event;
140
141
        return $this;
142
    }
143
144
    /**
145
     * Get event.
146
     *
147
     * @return \Azine\MailgunWebhooksBundle\Entity\MailgunEvent
148
     */
149
    public function getEvent()
150
    {
151
        return $this->event;
152
    }
153
}
154