MailHookEvent::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Swm\Bundle\MailHookBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Symfony\Component\Security\Core\User\UserInterface;
7
8
class MailHookEvent extends Event implements HookEventInterface
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
9
{
10
    /**
11
     * @var string
12
     */
13
    private $email;
14
15
    /**
16
     * @var string
17
     */
18
    private $name;
19
20
    /**
21
     * @var array Direct metadata from the mail provider
22
     */
23
    private $metaData;
24
25
    /**
26
     * @param string        $email
27
     * @param string        $name
28
     * @param array         $metaData
29
     */
30
    public function __construct($email = null, $name = null, array $metaData = array())
31
    {
32
        $this->email    = $email;
33
        $this->name     = $name;
34
        $this->metaData = $metaData;
35
    }
36
37
    /**
38
     * Gets the value of email.
39
     *
40
     * @return string
41
     */
42
    public function getEmail()
43
    {
44
        return $this->email;
45
    }
46
47
    /**
48
     * Sets the value of email.
49
     *
50
     * @param string $email the email
51
     *
52
     * @return this
53
     */
54
    public function setEmail($email)
55
    {
56
        $this->email = $email;
57
58
        return $this;
59
    }
60
61
    /**
62
     * Gets the value of name.
63
     *
64
     * @return string
65
     */
66
    public function getName()
67
    {
68
        return $this->name;
69
    }
70
71
    /**
72
     * Sets the value of name.
73
     *
74
     * @param string $name the name
75
     *
76
     * @return this
77
     */
78
    public function setName($name)
79
    {
80
        $this->name = $name;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Gets the value of metaData.
87
     *
88
     * @return array
89
     */
90
    public function getMetaData()
91
    {
92
        return $this->metaData;
93
    }
94
95
    /**
96
     * Sets the value of metaData.
97
     *
98
     * @param array $metaData the meta data
99
     *
100
     * @return this
101
     */
102
    public function setMetaData(array $metaData = array())
103
    {
104
        $this->metaData = $metaData;
105
106
        return $this;
107
    }
108
}
109