for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Administrador
* Date: 27/09/2017
* Time: 08:21 PM
*/
namespace Greenter\Model\Sale;
use Greenter\Xml\Validator\PrepaymentValidator;
use Symfony\Component\Validator\Constraints as Assert;
* Class Prepayment
* @package Greenter\Model\Sale
class Prepayment
{
use PrepaymentValidator;
* @Assert\NotBlank()
* @Assert\Length(min="2", max="2")
* @var string
private $tipoDocRel;
* @Assert\Length(max="30")
private $nroDocRel;
* @Assert\Type("numeric")
* @var float
private $total;
* @return string
public function getTipoDocRel()
return $this->tipoDocRel;
}
* @param string $tipoDocRel
* @return Prepayment
public function setTipoDocRel($tipoDocRel)
$this->tipoDocRel = $tipoDocRel;
return $this;
public function getNroDocRel()
return $this->nroDocRel;
* @param string $nroDocRel
public function setNroDocRel($nroDocRel)
$this->nroDocRel = $nroDocRel;
* @return float
public function getTotal()
return $this->total;
* @param float $total
public function setTotal($total)
$this->total = $total;