for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Administrador
* Date: 28/09/2017
* Time: 10:00 AM
* Se reguiere añadir leyendas al documento, dirigase al manual Datos Tributarios Recomendados - SUNAT.
*/
namespace Greenter\Model\Sale;
use Greenter\Xml\Validator\DetractionValidator;
use Symfony\Component\Validator\Constraints as Assert;
* Class Detraction
* @package Greenter\Model\Sale
class Detraction
{
use DetractionValidator;
* Porcentaje de la detracción
*
* @Assert\NotBlank()
* @Assert\Type("numeric")
* @var float
private $percent;
* Monto de la detracción
private $mount;
* Valor referencial, en el caso de detracciones al transporte de bienes por vía terrestre
private $valueRef;
* @return float
public function getPercent()
return $this->percent;
}
* @param float $percent
* @return Detraction
public function setPercent($percent)
$this->percent = $percent;
return $this;
public function getMount()
return $this->mount;
* @param float $mount
public function setMount($mount)
$this->mount = $mount;
public function getValueRef()
return $this->valueRef;
* @param float $valueRef
public function setValueRef($valueRef)
$this->valueRef = $valueRef;