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