InvoiceVatItemTrait   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 92
ccs 9
cts 15
cp 0.6
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getVatPercent() 0 4 1
A setVatPercent() 0 4 1
A getVatValue() 0 4 1
A setVatValue() 0 4 1
A getCompleteNet() 0 4 1
A setCompleteNet() 0 4 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Trait for invoice VAT item.
9
 */
10
trait InvoiceVatItemTrait
11
{
12
    /**
13
     * The invoice item vat percent.
14
     *
15
     * @var string
16
     *
17
     * @JMS\Type("string")
18
     * @JMS\SerializedName("VAT_PERCENT")
19
     */
20
    protected $vatPercent;
21
22
    /**
23
     * The invoice item vat value.
24
     *
25
     * @var string
26
     *
27
     * @JMS\Type("string")
28
     * @JMS\SerializedName("VAT_VALUE")
29
     */
30
    protected $vatValue;
31
32
    /**
33
     * The invoice item complete net value.
34
     *
35
     * @var string
36
     *
37
     * @JMS\Type("string")
38
     * @JMS\SerializedName("COMPLETE_NET")
39
     */
40
    protected $completeNet;
41
42
    /**
43
     * Get the VAT percent.
44
     *
45
     * @return string
46
     */
47
    public function getVatPercent()
48
    {
49
        return $this->vatPercent;
50
    }
51
52
    /**
53
     * Set the VAT percent.
54
     *
55
     * @param string $vatPercent
56
     */
57 6
    public function setVatPercent($vatPercent)
58
    {
59 6
        $this->vatPercent = $vatPercent;
60 6
    }
61
62
    /**
63
     * Get the VAT value.
64
     *
65
     * @return string
66
     */
67
    public function getVatValue()
68
    {
69
        return $this->vatValue;
70
    }
71
72
    /**
73
     * Set the VAT value.
74
     *
75
     * @param string $vatValue
76
     */
77 6
    public function setVatValue($vatValue)
78
    {
79 6
        $this->vatValue = $vatValue;
80 6
    }
81
82
    /**
83
     * Get the complete net value.
84
     *
85
     * @return string
86
     */
87
    public function getCompleteNet()
88
    {
89
        return $this->completeNet;
90
    }
91
92
    /**
93
     * Set the complete net value.
94
     *
95
     * @param string $completeNet
96
     */
97 6
    public function setCompleteNet($completeNet)
98
    {
99 6
        $this->completeNet = $completeNet;
100 6
    }
101
}
102