Record::getToChange()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_modules\Parser;
4
5
6
/**
7
 * Class Record
8
 * @package kalanis\kw_modules\Parser
9
 * Single record about module from page
10
 */
11
class Record
12
{
13
    protected string $moduleName = '';
14
    protected string $content = '';
15
    /** @var string[] */
16
    protected array $path = [];
17
    protected string $toChange = '';
18
    protected string $whatReplace = '';
19
20 8
    public function setModuleName(string $moduleName): void
21
    {
22 8
        $this->moduleName = $moduleName;
23 8
    }
24
25 6
    public function setContent(string $content = ''): void
26
    {
27 6
        $this->content = $content;
28 6
    }
29
30
    /**
31
     * @param string[] $path
32
     */
33 8
    public function setModulePath(array $path): void
34
    {
35 8
        $this->path = $path;
36 8
    }
37
38 8
    public function setContentToChange(string $content): void
39
    {
40 8
        $this->toChange = $content;
41 8
    }
42
43 3
    public function setWhatWillReplace(string $content): void
44
    {
45 3
        $this->whatReplace = $content;
46 3
    }
47
48 7
    public function getModuleName(): string
49
    {
50 7
        return $this->moduleName;
51
    }
52
53 8
    public function getContent(): string
54
    {
55 8
        return $this->content;
56
    }
57
58
    /**
59
     * @return string[]
60
     */
61 8
    public function getModulePath(): array
62
    {
63 8
        return $this->path;
64
    }
65
66 7
    public function getToChange(): string
67
    {
68 7
        return $this->toChange;
69
    }
70
71 3
    public function getWillReplace(): string
72
    {
73 3
        return $this->whatReplace;
74
    }
75
}
76