for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Giansalex
* Date: 15/07/2017
* Time: 22:00
*/
namespace Greenter\Xml\Model\Voided;
use Greenter\Xml\Validator\VoidedValidator;
use Symfony\Component\Validator\Constraints as Assert;
* Class Voided
* @package Greenter\Xml\Model\Voided
class Voided
{
use VoidedValidator;
* @Assert\NotBlank()
* @Assert\Length(max="3")
* @var string
private $correlativo;
* @Assert\Date()
* @var \DateTime
private $fecGeneracion;
private $fecComunicacion;
* @Assert\Valid()
* @var VoidedDetail[]
private $details;
public function __construct()
$this->fecGeneracion = new \DateTime();
}
* @return string
public function getCorrelativo()
return $this->correlativo;
* @param string $correlativo
* @return Voided
public function setCorrelativo($correlativo)
$this->correlativo = $correlativo;
return $this;
* @return \DateTime
public function getFecGeneracion()
return $this->fecGeneracion;
* @param \DateTime $fecGeneracion
public function setFecGeneracion($fecGeneracion)
$this->fecGeneracion = $fecGeneracion;
public function getFecComunicacion()
return $this->fecComunicacion;
* @param \DateTime $fecComunicacion
public function setFecComunicacion($fecComunicacion)
$this->fecComunicacion = $fecComunicacion;
* @return VoidedDetail[]
public function getDetails()
return $this->details;
* @param VoidedDetail[] $details
public function setDetails($details)
$this->details = $details;