ComposerFilesResponse::isExists()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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