| Total Complexity | 6 |
| Total Lines | 40 |
| 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 $language = 'en'; |
||
| 11 | private string $name = 'My Project'; |
||
| 12 | |||
| 13 | 1 | public function getCharset(): string |
|
| 14 | { |
||
| 15 | 1 | return $this->charset; |
|
| 16 | } |
||
| 17 | |||
| 18 | 1 | public function getLanguage(): string |
|
| 19 | { |
||
| 20 | 1 | return $this->language; |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function getName(): string |
|
| 24 | { |
||
| 25 | 1 | return $this->name; |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function charset(string $value): self |
|
| 29 | { |
||
| 30 | 1 | $new = clone $this; |
|
| 31 | 1 | $new->charset = $value; |
|
| 32 | 1 | return $new; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function language(string $value): self |
|
| 36 | { |
||
| 37 | 1 | $new = clone $this; |
|
| 38 | 1 | $new->language = $value; |
|
| 39 | 1 | return $new; |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | public function name(string $value): self |
|
| 47 | } |
||
| 48 | } |
||
| 49 |