Author   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A getEmail() 0 4 1
A getRole() 0 4 1
A getItemId() 0 4 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class Author implements ConfigurationItemInterface
5
{
6
    /** @var string */
7
    private $name;
8
    /** @var string */
9
    private $email;
10
    /** @var string */
11
    private $role;
12
13
    public function __construct($name, $email = null, $role = null)
14
    {
15
        $this->name = $name;
16
        $this->email = $email;
17
        $this->role = $role;
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return $this->name;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getEmail()
32
    {
33
        return $this->email;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getRole()
40
    {
41
        return $this->role;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getItemId()
48
    {
49
        return $this->getName();
50
    }
51
}
52