PhpMdResponse::getPhpMdOptions()   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\Configuration\Contract\Response;
4
5
class PhpMdResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpMd;
11
    /**
12
     * @var null|string
13
     */
14
    private $phpMdOptions;
15
16
    /**
17
     * PhpMdResponse constructor.
18
     *
19
     * @param bool        $phpMd
20
     * @param string|null $phpMdOptions
21
     */
22 9
    public function __construct($phpMd, $phpMdOptions)
23
    {
24 9
        $this->phpMd = $phpMd;
25 9
        $this->phpMdOptions = $phpMdOptions;
26 9
    }
27
28
    /**
29
     * @return bool
30
     */
31 2
    public function isPhpMd()
32
    {
33 2
        return $this->phpMd;
34
    }
35
36
    /**
37
     * @return null|string
38
     */
39 1
    public function getPhpMdOptions()
40
    {
41 1
        return $this->phpMdOptions;
42
    }
43
}
44