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

PrePushTool::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
ccs 4
cts 4
cp 1
cc 1
eloc 3
nc 1
nop 2
crap 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