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

CommitMsg::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\Git\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
use Symfony\Component\Console\Input\InputInterface;
7
8
class CommitMsg implements CommandInterface
9
{
10
    /**
11
     * @var InputInterface
12
     */
13
    private $input;
14
15
    /**
16
     * CommitMsgCommand constructor.
17
     *
18
     * @param InputInterface $input
19
     */
20 2
    public function __construct(InputInterface $input)
21
    {
22 2
        $this->input = $input;
23 2
    }
24
25
    /**
26
     * @return InputInterface
27
     */
28 2
    public function getInput()
29
    {
30 2
        return $this->input;
31
    }
32
}
33