Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class ApplicationParameters |
||
8 | { |
||
9 | private string $charset = 'UTF-8'; |
||
10 | private string $name = 'My Project'; |
||
11 | |||
12 | 3 | public function getCharset(): string |
|
13 | { |
||
14 | 3 | return $this->charset; |
|
15 | } |
||
16 | |||
17 | 3 | public function getName(): string |
|
18 | { |
||
19 | 3 | return $this->name; |
|
20 | } |
||
21 | |||
22 | 3 | public function charset(string $value): self |
|
23 | { |
||
24 | 3 | $new = clone $this; |
|
25 | 3 | $new->charset = $value; |
|
26 | 3 | return $new; |
|
27 | } |
||
28 | |||
29 | 3 | public function name(string $value): self |
|
34 | } |
||
35 | } |
||
36 |