1 | <?php |
||
8 | class UserMailHookEvent extends MailHookEvent implements HookEventInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $name; |
||
|
|||
14 | |||
15 | /** |
||
16 | * @var UserInterface |
||
17 | */ |
||
18 | private $user; |
||
19 | |||
20 | /** |
||
21 | * @var array Direct metadata from the mail provider |
||
22 | */ |
||
23 | private $metaData; |
||
24 | |||
25 | /** |
||
26 | * @param string $name |
||
27 | * @param UserInterface $user |
||
28 | * @param array $metaData |
||
29 | */ |
||
30 | public function __construct(UserInterface $user = null, $name = null, array $metaData = array()) |
||
36 | |||
37 | /** |
||
38 | * Gets the value of user. |
||
39 | * |
||
40 | * @return UserInterface |
||
41 | */ |
||
42 | public function getUser() |
||
46 | |||
47 | /** |
||
48 | * Sets the value of user. |
||
49 | * |
||
50 | * @param UserInterface $user the user |
||
51 | * |
||
52 | * @return this |
||
53 | */ |
||
54 | public function setUser(UserInterface $user) |
||
60 | } |
||
61 |