Passed
Branch develop (477450)
by JAIME ELMER
06:26
created

DiscrepancyResponse   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setReferenceID() 0 3 1
A xmlSerialize() 0 5 1
A getDescription() 0 2 1
A getReferenceID() 0 2 1
A getResponseCode() 0 2 1
A setResponseCode() 0 3 1
A setDescription() 0 3 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
use Sabre\Xml\Element\Cdata;
15
16
class DiscrepancyResponse extends BaseComponent {
17
18
    protected $ReferenceID;
19
    protected $ResponseCode;
20
    protected $Description;
21
22
    function xmlSerialize(Writer $writer) {
23
        $writer->write([
24
            SchemaNS::CBC . 'ReferenceID'  => $this->ReferenceID,
25
            SchemaNS::CBC . 'ResponseCode' => $this->ResponseCode,
26
            SchemaNS::CBC . 'Description'  => new Cdata($this->Description)
27
        ]);
28
    }
29
30
    public function getReferenceID() {
31
        return $this->ReferenceID;
32
    }
33
34
    public function setReferenceID($ReferenceID) {
35
        $this->ReferenceID = $ReferenceID;
36
        return $this;
37
    }
38
39
    public function getResponseCode() {
40
        return $this->ResponseCode;
41
    }
42
43
    public function setResponseCode($ResponseCode) {
44
        $this->ResponseCode = $ResponseCode;
45
        return $this;
46
    }
47
48
    public function getDescription() {
49
        return $this->Description;
50
    }
51
52
    public function setDescription($Description) {
53
        $this->Description = $Description;
54
        return $this;
55
    }
56
57
}
58