DefaultHook::getEmail()   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 Swm\Bundle\MailHookBundle\Hook;
4
5
class DefaultHook implements HookInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $event;
11
12
    /**
13
     * @var string
14
     */
15
    private $email;
16
17
    /**
18
     * @var string
19
     */
20
    private $service;
21
22
    /**
23
     * @var array
24
     */
25
    private $metaData;
26
27
    /**
28
     * @var string
29
     */
30
    private $eventDispatched;
31
32
    /**
33
     * @param string $event
34
     * @param string $email
35
     * @param string $service
36
     * @param array  $metaData
37
     * @param string $eventDispatched
38
     */
39
    public function __construct($event, $email, $service, $metaData = array(), $eventDispatched)
40
    {
41
        $this->event           = $event;
42
        $this->email           = $email;
43
        $this->service         = $service;
44
        $this->metaData        = $metaData;
45
        $this->eventDispatched = $eventDispatched;
46
    }
47
48
    /**
49
     * Gets the value of event.
50
     *
51
     * @return mixed
52
     */
53
    public function getEvent()
54
    {
55
        return $this->event;
56
    }
57
58
    /**
59
     * Sets the value of event.
60
     *
61
     * @param mixed $event the event
62
     *
63
     * @return this
64
     */
65
    public function setEvent($event)
66
    {
67
        $this->event = $event;
68
69
        return $this;
70
    }
71
72
    /**
73
     * Gets the value of email.
74
     *
75
     * @return mixed
76
     */
77
    public function getEmail()
78
    {
79
        return $this->email;
80
    }
81
82
    /**
83
     * Sets the value of email.
84
     *
85
     * @param mixed $email the email
86
     *
87
     * @return this
88
     */
89
    public function setEmail($email)
90
    {
91
        $this->email = $email;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Gets the value of service.
98
     *
99
     * @return mixed
100
     */
101
    public function getService()
102
    {
103
        return $this->service;
104
    }
105
106
    /**
107
     * Sets the value of service.
108
     *
109
     * @param mixed $service the service
110
     *
111
     * @return this
112
     */
113
    public function setService($service)
114
    {
115
        $this->service = $service;
116
117
        return $this;
118
    }
119
120
    /**
121
     * Gets the value of metaData.
122
     *
123
     * @return mixed
124
     */
125
    public function getMetaData()
126
    {
127
        return $this->metaData;
128
    }
129
130
    /**
131
     * Sets the value of metaData.
132
     *
133
     * @param mixed $metaData the meta data
134
     *
135
     * @return this
136
     */
137
    public function setMetaData(array $metaData = array())
138
    {
139
        $this->metaData = $metaData;
140
141
        return $this;
142
    }
143
144
    /**
145
     * Gets the value of eventDispatched.
146
     *
147
     * @return mixed
148
     */
149
    public function getEventDispatched()
150
    {
151
        return $this->eventDispatched;
152
    }
153
154
    /**
155
     * Sets the value of eventDispatched.
156
     *
157
     * @param mixed $eventDispatched the event dispatched
158
     *
159
     * @return this
160
     */
161
    public function setEventDispatched($eventDispatched)
162
    {
163
        $this->eventDispatched = $eventDispatched;
164
165
        return $this;
166
    }
167
}
168