ComposerFilesResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0
ccs 11
cts 11
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A isExists() 0 4 1
A isJsonFile() 0 4 1
A isLockFile() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Files\Contract\Response;
4
5
class ComposerFilesResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $exists;
11
    /**
12
     * @var bool
13
     */
14
    private $jsonFile;
15
    /**
16
     * @var bool
17
     */
18
    private $lockFile;
19
20
    /**
21
     * ComposerFilesResponse constructor.
22
     *
23
     * @param bool $exists
24
     * @param bool $jsonFile
25
     * @param bool $lockFile
26
     */
27 4
    public function __construct($exists, $jsonFile, $lockFile)
28
    {
29 4
        $this->exists = $exists;
30 4
        $this->jsonFile = $jsonFile;
31 4
        $this->lockFile = $lockFile;
32 4
    }
33
34
    /**
35
     * @return bool
36
     */
37 3
    public function isExists()
38
    {
39 3
        return $this->exists;
40
    }
41
42
    /**
43
     * @return bool
44
     */
45 3
    public function isJsonFile()
46
    {
47 3
        return $this->jsonFile;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53 3
    public function isLockFile()
54
    {
55 3
        return $this->lockFile;
56
    }
57
}
58