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

GitIgnoreWriter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContent() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Git\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class GitIgnoreWriter implements CommandInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $content;
13
14
    /**
15
     * GitIgnoreWriterCommand constructor.
16
     *
17
     * @param string $content
18
     */
19 3
    public function __construct($content)
20
    {
21 3
        $this->content = $content;
22 3
    }
23
24
    /**
25
     * @return string
26
     */
27 1
    public function getContent()
28
    {
29 1
        return $this->content;
30
    }
31
}
32