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

FiatCurrencyObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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