RatesObject   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 48
ccs 6
cts 10
cp 0.6
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace ONGR\CurrencyExchangeBundle\Document;
13
14
use ONGR\ElasticsearchBundle\Annotation as ES;
15
16
/**
17
 * Currency rates data.
18
 *
19
 * @ES\Object()
20
 */
21
class RatesObject
22
{
23
    /**
24
     * @var string
25
     *
26
     * @ES\Property(type="string")
27
     */
28
    private $name;
29
30
    /**
31
     * @var float
32
     *
33
     * @ES\Property(type="float")
34
     */
35
    private $value;
36
37
    /**
38
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
45
    /**
46
     * @param string $name
47
     */
48 2
    public function setName($name)
49
    {
50 2
        $this->name = $name;
51 2
    }
52
53
    /**
54
     * @return float
55
     */
56
    public function getValue()
57
    {
58
        return $this->value;
59
    }
60
61
    /**
62
     * @param float $value
63
     */
64 2
    public function setValue($value)
65
    {
66 2
        $this->value = $value;
67 2
    }
68
}
69