Completed
Branch guard_coverage (f2aaf0)
by Pablo
03:07
created

GitIgnoreWriterCommand::getContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\Git\Contract\Command;
4
5
use PhpGitHooks\Infrastructure\CommandBus\CommandBus\CommandInterface;
6
7
class GitIgnoreWriterCommand 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