Passed
Push — master ( 80b57f...2460a5 )
by Yo
02:49
created

SuggestedPackage   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getDescription() 0 4 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class SuggestedPackage
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 2
    public function __construct($name, $description)
16
    {
17 2
        $this->name = $name;
18 2
        $this->description = $description;
19 2
    }
20
21
    /**
22
     * @return string
23
     */
24 2
    public function getName()
25
    {
26 2
        return $this->name;
27
    }
28
29
    /**
30
     * @return string
31
     */
32 2
    public function getDescription()
33
    {
34 2
        return $this->description;
35
    }
36
}
37