Test Failed
Push — master ( 1f5d45...b072a0 )
by JAIME ELMER
04:15
created

InvoiceDocumentReference   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setID() 0 3 1
A xmlSerialize() 0 4 1
A getID() 0 2 1
A setDocumentTypeCode() 0 3 1
A getDocumentTypeCode() 0 2 1
1
<?php
2
3
/**
4
 * MÓDULO DE EMISIÓN ELECTRÓNICA F72X
5
 * UBL 2.1
6
 * Version 1.1
7
 * 
8
 * Copyright 2018, Jaime Cruz
9
 */
10
11
namespace F72X\UblComponent;
12
13
use Sabre\Xml\Writer;
14
15
class InvoiceDocumentReference extends BaseComponent {
16
17
    protected $ID;
18
    protected $DocumentTypeCode;
19
20
    function xmlSerialize(Writer $writer) {
21
        $writer->write([
22
            SchemaNS::CBC . 'ID' => $this->ID,
23
            SchemaNS::CBC . 'DocumentTypeCode' => $this->DocumentTypeCode
24
        ]);
25
    }
26
27
    public function getID() {
28
        return $this->ID;
29
    }
30
31
    public function setID($ID) {
32
        $this->ID = $ID;
33
        return $this;
34
    }
35
36
    public function getDocumentTypeCode() {
37
        return $this->DocumentTypeCode;
38
    }
39
40
    public function setDocumentTypeCode($DocumentTypeCode) {
41
        $this->DocumentTypeCode = $DocumentTypeCode;
42
        return $this;
43
    }
44
45
}
46