| @@ 18-117 (lines=100) @@ | ||
| 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 | } |
|
| @@ 18-124 (lines=107) @@ | ||
| 15 | * Class Voided |
|
| 16 | * @package Greenter\Xml\Model\Voided |
|
| 17 | */ |
|
| 18 | class Voided |
|
| 19 | { |
|
| 20 | use VoidedValidator; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @Assert\NotBlank() |
|
| 24 | * @Assert\Length(max="3") |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | private $correlativo; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @Assert\Date() |
|
| 31 | * @var \DateTime |
|
| 32 | */ |
|
| 33 | private $fecGeneracion; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @Assert\NotBlank() |
|
| 37 | * @Assert\Date() |
|
| 38 | * @var \DateTime |
|
| 39 | */ |
|
| 40 | private $fecComunicacion; |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @Assert\Valid() |
|
| 44 | * @var VoidedDetail[] |
|
| 45 | */ |
|
| 46 | private $details; |
|
| 47 | ||
| 48 | public function __construct() |
|
| 49 | { |
|
| 50 | $this->fecGeneracion = new \DateTime(); |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * @return string |
|
| 55 | */ |
|
| 56 | public function getCorrelativo() |
|
| 57 | { |
|
| 58 | return $this->correlativo; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @param string $correlativo |
|
| 63 | * @return Voided |
|
| 64 | */ |
|
| 65 | public function setCorrelativo($correlativo) |
|
| 66 | { |
|
| 67 | $this->correlativo = $correlativo; |
|
| 68 | return $this; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * @return \DateTime |
|
| 73 | */ |
|
| 74 | public function getFecGeneracion() |
|
| 75 | { |
|
| 76 | return $this->fecGeneracion; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @param \DateTime $fecGeneracion |
|
| 81 | * @return Voided |
|
| 82 | */ |
|
| 83 | public function setFecGeneracion($fecGeneracion) |
|
| 84 | { |
|
| 85 | $this->fecGeneracion = $fecGeneracion; |
|
| 86 | return $this; |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @return \DateTime |
|
| 91 | */ |
|
| 92 | public function getFecComunicacion() |
|
| 93 | { |
|
| 94 | return $this->fecComunicacion; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @param \DateTime $fecComunicacion |
|
| 99 | * @return Voided |
|
| 100 | */ |
|
| 101 | public function setFecComunicacion($fecComunicacion) |
|
| 102 | { |
|
| 103 | $this->fecComunicacion = $fecComunicacion; |
|
| 104 | return $this; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * @return VoidedDetail[] |
|
| 109 | */ |
|
| 110 | public function getDetails() |
|
| 111 | { |
|
| 112 | return $this->details; |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * @param VoidedDetail[] $details |
|
| 117 | * @return Voided |
|
| 118 | */ |
|
| 119 | public function setDetails($details) |
|
| 120 | { |
|
| 121 | $this->details = $details; |
|
| 122 | return $this; |
|
| 123 | } |
|
| 124 | } |
|