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

ComposerFilesExtractor::getFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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