JsonFilesResponse   A
last analyzed

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
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0
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\Response;
4
5
class JsonFilesResponse
6
{
7
    /**
8
     * @var array
9
     */
10
    private $files;
11
12
    /**
13
     * JsonFilesResponse constructor.
14
     *
15
     * @param array $files
16
     */
17 4
    public function __construct(array $files)
18
    {
19 4
        $this->files = $files;
20 4
    }
21
22
    /**
23
     * @return array
24
     */
25 4
    public function getFiles()
26
    {
27 4
        return $this->files;
28
    }
29
}
30