ConfigurationDataResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
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 55
rs 10
c 0
b 0
f 0
ccs 11
cts 11
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getPreCommit() 0 4 1
A getCommitMsg() 0 4 1
A getPrePush() 0 4 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