ExternalReference   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getURI() 0 2 1
A setURI() 0 3 1
A xmlSerialize() 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 Sabre\Xml\Writer;
14
15
class ExternalReference extends BaseComponent {
16
17
    protected $URI;
18
19
    function xmlSerialize(Writer $writer) {
20
        $writer->write([
21
            SchemaNS::CBC . 'URI' => $this->URI
22
        ]);
23
    }
24
25
    public function getURI() {
26
        return $this->URI;
27
    }
28
29
    public function setURI($URI) {
30
        $this->URI = $URI;
31
        return $this;
32
    }
33
34
}
35