SellersItemIdentification::getID()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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 SellersItemIdentification extends BaseComponent {
16
17
    protected $ID;
18
    protected $validations = ['ID'];
19
20
    function xmlSerialize(Writer $writer) {
21
        $this->validate();
22
        $writer->write([
23
            SchemaNS::CBC . 'ID' => $this->ID
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
}
37