Test Failed
Push — master ( f0236f...a2480a )
by Giancarlos
03:23
created

Detraction   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 81
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPercent() 0 4 1
A setPercent() 0 5 1
A getMount() 0 4 1
A setMount() 0 5 1
A getValueRef() 0 4 1
A setValueRef() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 28/09/2017
6
 * Time: 10:00 AM
7
 * Se reguiere añadir leyendas al documento, dirigase al manual Datos Tributarios Recomendados - SUNAT.
8
 */
9
10
namespace Greenter\Model\Sale;
11
12
13
use Greenter\Xml\Validator\DetractionValidator;
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * Class Detraction
18
 * @package Greenter\Model\Sale
19
 */
20
class Detraction
21
{
22
    use DetractionValidator;
23
24
    /**
25
     * Porcentaje de la detracción
26
     *
27
     * @Assert\NotBlank()
28
     * @Assert\Type("numeric")
29
     * @var float
30
     */
31
    private $percent;
32
33
    /**
34
     * Monto de la detracción
35
     *
36
     * @Assert\NotBlank()
37
     * @var float
38
     */
39
    private $mount;
40
41
    /**
42
     * Valor referencial, en el caso de detracciones al transporte de bienes por vía terrestre
43
     * @var float
44
     */
45
    private $valueRef;
46
47
    /**
48
     * @return float
49
     */
50
    public function getPercent()
51
    {
52
        return $this->percent;
53
    }
54
55
    /**
56
     * @param float $percent
57
     * @return Detraction
58
     */
59
    public function setPercent($percent)
60
    {
61
        $this->percent = $percent;
62
        return $this;
63
    }
64
65
    /**
66
     * @return float
67
     */
68
    public function getMount()
69
    {
70
        return $this->mount;
71
    }
72
73
    /**
74
     * @param float $mount
75
     * @return Detraction
76
     */
77
    public function setMount($mount)
78
    {
79
        $this->mount = $mount;
80
        return $this;
81
    }
82
83
    /**
84
     * @return float
85
     */
86
    public function getValueRef()
87
    {
88
        return $this->valueRef;
89
    }
90
91
    /**
92
     * @param float $valueRef
93
     * @return Detraction
94
     */
95
    public function setValueRef($valueRef)
96
    {
97
        $this->valueRef = $valueRef;
98
        return $this;
99
    }
100
}