Contact   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A setName() 0 4 1
A getEmail() 0 4 1
A setEmail() 0 4 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