AccountingSupplierParty   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getParty() 0 2 1
A setParty() 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 AccountingSupplierParty extends BaseComponent {
16
17
    /** @var Party */
18
    protected $Party;
19
20
    function xmlSerialize(Writer $writer) {
21
        $writer->write([
22
            SchemaNS::CAC . 'Party' => $this->Party
23
        ]);
24
    }
25
26
    public function getParty() {
27
        return $this->Party;
28
    }
29
30
    public function setParty($Party) {
31
        $this->Party = $Party;
32
        return $this;
33
    }
34
35
}
36