Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class FiatCurrencyObject |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $name; |
||
13 | |||
14 | /** |
||
15 | * FiatCurrencyObject constructor. |
||
16 | * @param string $name |
||
17 | */ |
||
18 | 12 | public function __construct(string $name) |
|
19 | { |
||
20 | 12 | $this->name = $name; |
|
21 | 12 | } |
|
22 | |||
23 | /** |
||
24 | * @return string |
||
25 | */ |
||
26 | 6 | public function getName(): string |
|
27 | { |
||
28 | 6 | return $this->name; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $name |
||
33 | */ |
||
34 | 3 | public function setName(string $name) |
|
37 | 3 | } |
|
38 | } |
||
39 |