Passed
Push — master ( 8884a6...674cbd )
by sarnado
02:38
created

FiatCurrencyObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 30
ccs 7
cts 7
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 3 1
A getName() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
4
namespace Sarnado\Converter\Objects;
5
6
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)
35
    {
36 3
        $this->name = $name;
37 3
    }
38
}
39