ConfigurationDataResponse::getPrePush()   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 ConfigurationDataResponse
6
{
7
    /**
8
     * @var PreCommitResponse
9
     */
10
    private $preCommit;
11
    /**
12
     * @var CommitMsgResponse
13
     */
14
    private $commitMsg;
15
    /**
16
     * @var PrePushResponse
17
     */
18
    private $prePush;
19
20
    /**
21
     * ConfigurationDataResponse constructor.
22
     * @param PreCommitResponse $preCommit
23
     * @param CommitMsgResponse $commitMsg
24
     * @param PrePushResponse $prePush
25
     */
26 9
    public function __construct(
27
        PreCommitResponse $preCommit,
28
        CommitMsgResponse $commitMsg,
29
        PrePushResponse $prePush
30
    ) {
31 9
        $this->preCommit = $preCommit;
32 9
        $this->commitMsg = $commitMsg;
33 9
        $this->prePush = $prePush;
34 9
    }
35
36
    /**
37
     * @return PreCommitResponse
38
     */
39 5
    public function getPreCommit()
40
    {
41 5
        return $this->preCommit;
42
    }
43
44
    /**
45
     * @return CommitMsgResponse
46
     */
47 3
    public function getCommitMsg()
48
    {
49 3
        return $this->commitMsg;
50
    }
51
52
    /**
53
     * @return PrePushResponse
54
     */
55 4
    public function getPrePush()
56
    {
57 4
        return $this->prePush;
58
    }
59
}
60