Record   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
dl 0
loc 63
ccs 25
cts 25
cp 1
rs 10
c 1
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 3 1
A setModulePath() 0 3 1
A getToChange() 0 3 1
A setContentToChange() 0 3 1
A setWhatWillReplace() 0 3 1
A getModuleName() 0 3 1
A getWillReplace() 0 3 1
A setModuleName() 0 3 1
A getModulePath() 0 3 1
A setContent() 0 3 1
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