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

Autoload   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
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 36
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 getType() 0 4 1
A getEntryList() 0 4 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Domain\Model;
3
4
class Autoload
5
{
6
    const TYPE_PSR0 = 'psr-0';
7
    const TYPE_PSR4 = 'psr-4';
8
9
    /** @var string */
10
    private $type;
11
    /** @var AutoloadEntry[] */
12
    private $entryList = [];
13
14
    /**
15
     * @param string           $type
16
     * @param AutoloadEntry[]  $entryList
17
     */
18 9
    public function __construct($type, array $entryList)
19
    {
20 9
        $this->type = $type;
21 9
        $this->entryList = $entryList;
22 9
    }
23
24
    /**
25
     * @return string
26
     */
27 3
    public function getType()
28
    {
29 3
        return $this->type;
30
    }
31
32
    /**
33
     * @return AutoloadEntry[]
34
     */
35 3
    public function getEntryList()
36
    {
37 3
        return $this->entryList;
38
    }
39
}
40