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

Payment::setImporte()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

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 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 08/08/2017
6
 * Time: 10:52 AM
7
 */
8
9
namespace Greenter\Model\Retention;
10
11
use Greenter\Xml\Validator\PaymentValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Payment
16
 * @package Greenter\Model\Retention
17
 */
18
class Payment
19
{
20
    use PaymentValidator;
21
22
    /**
23
     * Moneda de pago.
24
     *
25
     * @Assert\NotBlank()
26
     * @Assert\Length(min="3", max="3")
27
     * @var string
28
     */
29
    private $moneda;
30
31
    /**
32
     * Importe del pago sin retención.
33
     *
34
     * @Assert\NotBlank()
35
     * @var float
36
     */
37
    private $importe;
38
39
    /**
40
     * Fecha de pag.
41
     *
42
     * @Assert\NotBlank()
43
     * @Assert\Date()
44
     * @var \DateTime
45
     */
46
    private $fecha;
47
48
    /**
49
     * @return mixed
50
     */
51
    public function getMoneda()
52
    {
53
        return $this->moneda;
54
    }
55
56
    /**
57
     * @param mixed $moneda
58
     * @return Payment
59
     */
60
    public function setMoneda($moneda)
61
    {
62
        $this->moneda = $moneda;
63
        return $this;
64
    }
65
66
    /**
67
     * @return mixed
68
     */
69
    public function getImporte()
70
    {
71
        return $this->importe;
72
    }
73
74
    /**
75
     * @param mixed $importe
76
     * @return Payment
77
     */
78
    public function setImporte($importe)
79
    {
80
        $this->importe = $importe;
81
        return $this;
82
    }
83
84
    /**
85
     * @return mixed
86
     */
87
    public function getFecha()
88
    {
89
        return $this->fecha;
90
    }
91
92
    /**
93
     * @param mixed $fecha
94
     * @return Payment
95
     */
96
    public function setFecha($fecha)
97
    {
98
        $this->fecha = $fecha;
99
        return $this;
100
    }
101
}