Completed
Push — master ( 8ee32e...efc44e )
by Pablo
02:33
created

ComposerFilesExtractor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getFiles() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Files\Contract\Query;
4
5
use Bruli\EventBusBundle\QueryBus\QueryInterface;
6
7
class ComposerFilesExtractor implements QueryInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    private $files;
13
14
    /**
15
     * ComposerFilesExtractorQuery constructor.
16
     *
17
     * @param array $files
18
     */
19 4
    public function __construct(array $files)
20
    {
21 4
        $this->files = $files;
22 4
    }
23
24
    /**
25
     * @return array
26
     */
27 1
    public function getFiles()
28
    {
29 1
        return $this->files;
30
    }
31
}
32