Completed
Push — master ( 6ba45c...e1d569 )
by Giancarlos
04:03
created

Exchange::getFecha()   A

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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 08/08/2017
6
 * Time: 11:00 AM
7
 */
8
9
namespace Greenter\Model\Retention;
10
11
use Greenter\Xml\Validator\ExchangeValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Exchange
16
 * @package Greenter\Model\Retention
17
 */
18
class Exchange
19
{
20
    use ExchangeValidator;
21
22
    /**
23
     * La moneda de referencia para el Tipo de Cambio.
24
     *
25
     * @Assert\NotBlank()
26
     * @Assert\Length(min="3", max="3")
27
     * @var string
28
     */
29
    private $monedaRef;
30
31
    /**
32
     * La moneda objetivo para la Tasa de Cambio.
33
     *
34
     * @Assert\NotBlank()
35
     * @Assert\Length(min="3", max="3")
36
     * @var string
37
     */
38
    private $monedaObj;
39
40
    /**
41
     * Tipo de Cambio.
42
     *
43
     * @Assert\NotBlank()
44
     * @var float
45
     */
46
    private $factor;
47
48
    /**
49
     * Fecha de cambio
50
     *
51
     * @Assert\NotBlank()
52
     * @Assert\Date()
53
     * @var \DateTime
54
     */
55
    private $fecha;
56
57
    /**
58
     * @return string
59
     */
60
    public function getMonedaRef()
61
    {
62
        return $this->monedaRef;
63
    }
64
65
    /**
66
     * @param string $monedaRef
67
     * @return Exchange
68
     */
69
    public function setMonedaRef($monedaRef)
70
    {
71
        $this->monedaRef = $monedaRef;
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getMonedaObj()
79
    {
80
        return $this->monedaObj;
81
    }
82
83
    /**
84
     * @param string $monedaObj
85
     * @return Exchange
86
     */
87
    public function setMonedaObj($monedaObj)
88
    {
89
        $this->monedaObj = $monedaObj;
90
        return $this;
91
    }
92
93
    /**
94
     * @return mixed
95
     */
96
    public function getFactor()
97
    {
98
        return $this->factor;
99
    }
100
101
    /**
102
     * @param mixed $factor
103
     * @return Exchange
104
     */
105
    public function setFactor($factor)
106
    {
107
        $this->factor = $factor;
108
        return $this;
109
    }
110
111
    /**
112
     * @return mixed
113
     */
114
    public function getFecha()
115
    {
116
        return $this->fecha;
117
    }
118
119
    /**
120
     * @param mixed $fecha
121
     * @return Exchange
122
     */
123
    public function setFecha($fecha)
124
    {
125
        $this->fecha = $fecha;
126
        return $this;
127
    }
128
}