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

Package   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
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 32
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 getVersionConstraint() 0 4 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class Package
5
{
6
    /** @var string */
7
    private $name;
8
    /** @var string */
9
    private $versionConstraint;
10
    /**
11
     * @param string $name
12
     * @param string $versionConstraint
13
     */
14 4
    public function __construct($name, $versionConstraint)
15
    {
16 4
        $this->name = $name;
17 4
        $this->versionConstraint = $versionConstraint;
18 4
    }
19
20
    /**
21
     * @return string
22
     */
23 4
    public function getName()
24
    {
25 4
        return $this->name;
26
    }
27
28
    /**
29
     * @return string
30
     */
31 4
    public function getVersionConstraint()
32
    {
33 4
        return $this->versionConstraint;
34
    }
35
}
36