Test Failed
Push — master ( a47c2b...4d6576 )
by Giancarlos
04:07
created

SalePerception   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 105
ccs 0
cts 20
cp 0
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getCodReg() 0 4 1
A setCodReg() 0 5 1
A getMtoBase() 0 4 1
A setMtoBase() 0 5 1
A getMto() 0 4 1
A setMto() 0 5 1
A getMtoTotal() 0 4 1
A setMtoTotal() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 30/07/2017
6
 * Time: 15:10
7
 */
8
9
namespace Greenter\Model\Sale;
10
11
use Greenter\Xml\Validator\SalePerceptionValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class SalePerception
16
 * @package Greenter\Model\Sale
17
 */
18
class SalePerception
19
{
20
    use SalePerceptionValidator;
21
22
    /**
23
     * @Assert\NotBlank()
24
     * @Assert\Length(min="2", max="2")
25
     *
26
     * @var string
27
     */
28
    private $codReg;
29
30
    /**
31
     * @Assert\NotBlank()
32
     *
33
     * @var float
34
     */
35
    private $mtoBase;
36
37
    /**
38
     * @Assert\NotBlank()
39
     *
40
     * @var float
41
     */
42
    private $mto;
43
44
    /**
45
     * @Assert\NotBlank()
46
     *
47
     * @var float
48
     */
49
    private $mtoTotal;
50
51
    /**
52
     * @return string
53
     */
54
    public function getCodReg()
55
    {
56
        return $this->codReg;
57
    }
58
59
    /**
60
     * @param string $codReg
61
     * @return SalePerception
62
     */
63
    public function setCodReg($codReg)
64
    {
65
        $this->codReg = $codReg;
66
        return $this;
67
    }
68
69
    /**
70
     * @return float
71
     */
72
    public function getMtoBase()
73
    {
74
        return $this->mtoBase;
75
    }
76
77
    /**
78
     * @param float $mtoBase
79
     * @return SalePerception
80
     */
81
    public function setMtoBase($mtoBase)
82
    {
83
        $this->mtoBase = $mtoBase;
84
        return $this;
85
    }
86
87
    /**
88
     * @return float
89
     */
90
    public function getMto()
91
    {
92
        return $this->mto;
93
    }
94
95
    /**
96
     * @param float $mto
97
     * @return SalePerception
98
     */
99
    public function setMto($mto)
100
    {
101
        $this->mto = $mto;
102
        return $this;
103
    }
104
105
    /**
106
     * @return float
107
     */
108
    public function getMtoTotal()
109
    {
110
        return $this->mtoTotal;
111
    }
112
113
    /**
114
     * @param float $mtoTotal
115
     * @return SalePerception
116
     */
117
    public function setMtoTotal($mtoTotal)
118
    {
119
        $this->mtoTotal = $mtoTotal;
120
        return $this;
121
    }
122
}