Passed
Push — master ( 1db685...9f6916 )
by Alexander
01:55
created

ApplicationParameters::heroFooterColumnRight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App;
6
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
43
    {
44 1
        $new = clone $this;
45 1
        $new->name = $value;
46 1
        return $new;
47
    }
48
}
49