Contact::setEmail()   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 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\Mail;
6
7
class Contact
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $name;
13
14
    /**
15
     * @var string
16
     */
17
    protected $email;
18
19
    public function __construct(string $name, string $email)
20
    {
21
        $this->name = $name;
22
        $this->email = $email;
23
    }
24
25
    public function getName(): string
26
    {
27
        return $this->name;
28
    }
29
30
    public function setName(string $name): void
31
    {
32
        $this->name = $name;
33
    }
34
35
    public function getEmail(): string
36
    {
37
        return $this->email;
38
    }
39
40
    public function setEmail(string $email): void
41
    {
42
        $this->email = $email;
43
    }
44
}
45