Completed
Push — master ( 0f7b01...b73efb )
by Bukashk0zzz
02:11
created

Currency::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[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 Bukashk0zzz\YmlGenerator\Model;
13
14
/**
15
 * Class Currency
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class Currency
20
{
21
    /**
22
     * @var string
23
     */
24
    private $id;
25
26
    /**
27
     * @var string
28
     */
29
    private $rate;
30
31
    /**
32
     * @return string
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @param string $id
41
     * @return Currency
42
     */
43
    public function setId($id)
44
    {
45
        $this->id = $id;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getRate()
54
    {
55
        return $this->rate;
56
    }
57
58
    /**
59
     * @param string $rate
60
     * @return Currency
61
     */
62
    public function setRate($rate)
63
    {
64
        $this->rate = $rate;
65
66
        return $this;
67
    }
68
}
69