Completed
Push — master ( efc44e...835840 )
by Pablo
02:59
created

PrePushTool   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 39
rs 10
ccs 8
cts 8
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRemote() 0 4 1
A getUrl() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Git\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class PrePushTool implements CommandInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $remote;
13
    /**
14
     * @var string
15
     */
16
    private $url;
17
18
    /**
19
     * PrePushToolCommand constructor.
20
     *
21
     * @param string $remote
22
     * @param string $url
23
     */
24 3
    public function __construct($remote, $url)
25
    {
26 3
        $this->remote = $remote;
27 3
        $this->url = $url;
28 3
    }
29
30
    /**
31
     * @return string
32
     */
33 3
    public function getRemote()
34
    {
35 3
        return $this->remote;
36
    }
37
38
    /**
39
     * @return string
40
     */
41 3
    public function getUrl()
42
    {
43 3
        return $this->url;
44
    }
45
}
46