RatesObject::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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