SuggestedPackage   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0

4 Methods

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