Completed
Push — master ( 544fde...527d7b )
by Giancarlos
02:31
created

Summary::setFecResumen()   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 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 15/07/2017
6
 * Time: 21:59
7
 */
8
9
namespace Greenter\Xml\Model\Summary;
10
11
use Greenter\Xml\Validator\SummaryValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Summary
16
 * @package Greenter\Xml\Model\Summary
17
 */
18
class Summary
19
{
20
    use SummaryValidator;
21
22
    /**
23
     * @Assert\Length(max="3")
24
     * @var string
25
     */
26
    private $correlativo;
27
    /**
28
     * @Assert\Date()
29
     * @var \DateTime
30
     */
31
    private $fecGeneracion;
32
33
    /**
34
     * @Assert\NotBlank()
35
     * @Assert\Date()
36
     * @var \DateTime
37
     */
38
    private $fecResumen;
39
40
    /**
41
     * @Assert\Valid()
42
     * @var SummaryDetail[]
43
     */
44
    private $details;
45
46
    /**
47
     * @return string
48
     */
49
    public function getCorrelativo()
50
    {
51
        return $this->correlativo;
52
    }
53
54
    /**
55
     * @param string $correlativo
56
     * @return Summary
57
     */
58
    public function setCorrelativo($correlativo)
59
    {
60
        $this->correlativo = $correlativo;
61
        return $this;
62
    }
63
64
    /**
65
     * @return \DateTime
66
     */
67
    public function getFecGeneracion()
68
    {
69
        return $this->fecGeneracion;
70
    }
71
72
    /**
73
     * @param \DateTime $fecGeneracion
74
     * @return Summary
75
     */
76
    public function setFecGeneracion($fecGeneracion)
77
    {
78
        $this->fecGeneracion = $fecGeneracion;
79
        return $this;
80
    }
81
82
    /**
83
     * @return \DateTime
84
     */
85
    public function getFecResumen()
86
    {
87
        return $this->fecResumen;
88
    }
89
90
    /**
91
     * @param \DateTime $fecResumen
92
     * @return Summary
93
     */
94
    public function setFecResumen($fecResumen)
95
    {
96
        $this->fecResumen = $fecResumen;
97
        return $this;
98
    }
99
100
    /**
101
     * @return SummaryDetail[]
102
     */
103
    public function getDetails()
104
    {
105
        return $this->details;
106
    }
107
108
    /**
109
     * @param SummaryDetail[] $details
110
     * @return Summary
111
     */
112
    public function setDetails($details)
113
    {
114
        $this->details = $details;
115
        return $this;
116
    }
117
}