| Total Complexity | 10 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
|
| 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 |
|
| 69 | } |
||
| 70 | |||
| 71 | 3 | public function getWillReplace(): string |
|
| 72 | { |
||
| 74 | } |
||
| 75 | } |
||
| 76 |