DebitNote   A
last analyzed

Complexity

Total Complexity 32

Size/Duplication

Total Lines 189
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 65
dl 0
loc 189
rs 9.84
c 1
b 0
f 0
wmc 32

32 Methods

Rating   Name   Duplication   Size   Complexity  
A setNotes() 0 3 1
A getNotes() 0 2 1
A getBillingReference() 0 2 1
A getTaxTotal() 0 2 1
A getID() 0 2 1
A setDocumentCurrencyCode() 0 3 1
A getAccountingCustomerParty() 0 2 1
A addDebitNoteLine() 0 3 1
A setBillingReference() 0 3 1
A setDespatchDocumentReference() 0 2 1
A getDiscrepancyResponse() 0 2 1
A setDebitNoteLines() 0 3 1
A getDebitNoteLines() 0 2 1
A getProfileID() 0 2 1
A getAccountingSupplierParty() 0 2 1
A getUBLExtensions() 0 2 1
A getRequestedMonetaryTotal() 0 2 1
A setSignature() 0 3 1
A setAccountingCustomerParty() 0 3 1
A setDiscrepancyResponse() 0 3 1
A getDespatchDocumentReference() 0 2 1
A setIssueDate() 0 2 1
A setAccountingSupplierParty() 0 3 1
A setUBLExtensions() 0 3 1
A setID() 0 3 1
A getIssueDate() 0 2 1
A getSignature() 0 2 1
A setProfileID() 0 3 1
A getDocumentCurrencyCode() 0 2 1
A addNote() 0 3 1
A setTaxTotal() 0 3 1
A setRequestedMonetaryTotal() 0 3 1
1
<?php
2
3
/**
4
 * MÓDULO DE EMISIÓN ELECTRÓNICA F72X
5
 * UBL 2.1
6
 * Version 1.0
7
 * 
8
 * Copyright 2019, Jaime Cruz
9
 */
10
11
namespace F72X\UblComponent;
12
13
use DateTime;
14
15
class DebitNote extends BaseComponent {
16
17
    /** @var UBLExtensions */
18
    protected $UBLExtensions;
19
    protected $UBLVersionID;
20
    protected $CustomizationID;
21
    protected $ProfileID;
22
    protected $ID;
23
24
    /** @var DateTime */
25
    protected $IssueDate;
26
27
    /** @var Note[] */
28
    protected $Notes = [];
29
    protected $DocumentCurrencyCode;
30
31
    /** @var DiscrepancyResponse */
32
    protected $DiscrepancyResponse;
33
34
    /** @var BillingReference */
35
    protected $BillingReference;
36
37
    /** @var Signature */
38
    protected $Signature;
39
40
    /** @var AccountingSupplierParty */
41
    protected $AccountingSupplierParty;
42
43
    /** @var AccountingCustomerParty */
44
    protected $AccountingCustomerParty;
45
46
    /** @var DespatchDocumentReference */
47
    protected $DespatchDocumentReference;
48
49
    /** @var TaxTotal */
50
    protected $TaxTotal;
51
52
    /** @var RequestedMonetaryTotal */
53
    protected $RequestedMonetaryTotal;
54
55
    /** @var DebitNoteLine[] */
56
    protected $DebitNoteLines = [];
57
58
    public function getUBLExtensions() {
59
        return $this->UBLExtensions;
60
    }
61
62
    public function setUBLExtensions($UBLExtensions) {
63
        $this->UBLExtensions = $UBLExtensions;
64
        return $this;
65
    }
66
67
    public function getProfileID() {
68
        return $this->ProfileID;
69
    }
70
71
    public function setProfileID($ProfileID) {
72
        $this->ProfileID = $ProfileID;
73
        return $this;
74
    }
75
76
    public function getID() {
77
        return $this->ID;
78
    }
79
80
    public function setID($ID) {
81
        $this->ID = $ID;
82
        return $this;
83
    }
84
85
    public function getIssueDate() {
86
        return $this->IssueDate;
87
    }
88
89
    public function setIssueDate(DateTime $IssueDate) {
90
        $this->IssueDate = $IssueDate;
91
    }
92
93
    public function getNotes() {
94
        return $this->Notes;
95
    }
96
97
    public function setNotes($Notes) {
98
        $this->Notes = $Notes;
99
        return $this;
100
    }
101
102
    /**
103
     * 
104
     * @param Note $Note
105
     * @return $this
106
     */
107
    public function addNote(Note $Note) {
108
        $this->Notes[] = $Note;
109
        return $this;
110
    }
111
112
    public function getDocumentCurrencyCode() {
113
        return $this->DocumentCurrencyCode;
114
    }
115
116
    public function setDocumentCurrencyCode($DocumentCurrencyCode) {
117
        $this->DocumentCurrencyCode = $DocumentCurrencyCode;
118
        return $this;
119
    }
120
121
    public function getDiscrepancyResponse() {
122
        return $this->DiscrepancyResponse;
123
    }
124
125
    public function setDiscrepancyResponse(DiscrepancyResponse $DiscrepancyResponse) {
126
        $this->DiscrepancyResponse = $DiscrepancyResponse;
127
        return $this;
128
    }
129
130
    public function getBillingReference() {
131
        return $this->BillingReference;
132
    }
133
134
    public function setBillingReference(BillingReference $BillingReference) {
135
        $this->BillingReference = $BillingReference;
136
        return $this;
137
    }
138
139
    public function getSignature() {
140
        return $this->Signature;
141
    }
142
143
    public function setSignature(Signature $Signature) {
144
        $this->Signature = $Signature;
145
        return $this;
146
    }
147
148
    public function getAccountingSupplierParty() {
149
        return $this->AccountingSupplierParty;
150
    }
151
152
    public function setAccountingSupplierParty(AccountingSupplierParty $AccountingSupplierParty) {
153
        $this->AccountingSupplierParty = $AccountingSupplierParty;
154
        return $this;
155
    }
156
157
    public function getAccountingCustomerParty() {
158
        return $this->AccountingCustomerParty;
159
    }
160
161
    public function setAccountingCustomerParty(AccountingCustomerParty $AccountingCustomerParty) {
162
        $this->AccountingCustomerParty = $AccountingCustomerParty;
163
        return $this;
164
    }
165
166
    public function getDespatchDocumentReference() {
167
        return $this->DespatchDocumentReference;
168
    }
169
170
    public function setDespatchDocumentReference(DespatchDocumentReference $DespatchDocumentReference) {
171
        $this->DespatchDocumentReference = $DespatchDocumentReference;
172
    }
173
174
    public function getTaxTotal() {
175
        return $this->TaxTotal;
176
    }
177
178
    public function setTaxTotal(TaxTotal $TaxTotal) {
179
        $this->TaxTotal = $TaxTotal;
180
        return $this;
181
    }
182
183
    public function getRequestedMonetaryTotal() {
184
        return $this->RequestedMonetaryTotal;
185
    }
186
187
    public function setRequestedMonetaryTotal(RequestedMonetaryTotal $RequestedMonetaryTotal) {
188
        $this->RequestedMonetaryTotal = $RequestedMonetaryTotal;
189
        return $this;
190
    }
191
192
    public function getDebitNoteLines() {
193
        return $this->DebitNoteLines;
194
    }
195
196
    public function setDebitNoteLines($DebitNoteLines) {
197
        $this->DebitNoteLines = $DebitNoteLines;
198
        return $this;
199
    }
200
201
    public function addDebitNoteLine(DebitNoteLine $InvoiceLine) {
202
        $this->DebitNoteLines[] = $InvoiceLine;
203
        return $this;
204
    }
205
206
}
207