1 | <?php |
||
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) |
||
47 | |||
48 | /** |
||
49 | * Gets the value of event. |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function getEvent() |
||
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) |
||
71 | |||
72 | /** |
||
73 | * Gets the value of email. |
||
74 | * |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function getEmail() |
||
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) |
||
95 | |||
96 | /** |
||
97 | * Gets the value of service. |
||
98 | * |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function getService() |
||
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) |
||
119 | |||
120 | /** |
||
121 | * Gets the value of metaData. |
||
122 | * |
||
123 | * @return mixed |
||
124 | */ |
||
125 | public function getMetaData() |
||
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()) |
||
143 | |||
144 | /** |
||
145 | * Gets the value of eventDispatched. |
||
146 | * |
||
147 | * @return mixed |
||
148 | */ |
||
149 | public function getEventDispatched() |
||
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) |
||
167 | } |
||
168 |