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

CryptoCurrencyObject   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 __construct() 0 3 1
A getName() 0 3 1
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