Completed
Pull Request — master (#85)
by
unknown
02:27
created

ConfigurationDataResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 55
ccs 0
cts 21
cp 0
rs 10
c 0
b 0
f 0

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
    public function __construct(
27
        PreCommitResponse $preCommit,
28
        CommitMsgResponse $commitMsg,
29
        PrePushResponse $prePush
30
    ) {
31
        $this->preCommit = $preCommit;
32
        $this->commitMsg = $commitMsg;
33
        $this->prePush = $prePush;
34
    }
35
36
    /**
37
     * @return PreCommitResponse
38
     */
39
    public function getPreCommit()
40
    {
41
        return $this->preCommit;
42
    }
43
44
    /**
45
     * @return CommitMsgResponse
46
     */
47
    public function getCommitMsg()
48
    {
49
        return $this->commitMsg;
50
    }
51
52
    /**
53
     * @return PrePushResponse
54
     */
55
    public function getPrePush()
56
    {
57
        return $this->prePush;
58
    }
59
}
60