PartyName::xmlSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
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
use Sabre\Xml\Element\Cdata;
15
16
class PartyName extends BaseComponent {
17
18
    protected $Name;
19
20
    function xmlSerialize(Writer $writer) {
21
        $writer->write([
22
            SchemaNS::CBC . 'Name' => new Cdata($this->Name)
23
        ]);
24
    }
25
26
    public function getName() {
27
        return $this->Name;
28
    }
29
30
    public function setName($Name) {
31
        $this->Name = $Name;
32
        return $this;
33
    }
34
35
}
36