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

CryptoCurrencyObject::setName()   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
/**
8
 * Class CryptoCurrencyObject
9
 * @package Sarnado\Converter\Objects
10
 */
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)
39
    {
40 3
        $this->name = $name;
41 3
    }
42
}
43