JsonFilesResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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