SignatoryParty::setPartyIdentification()   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
15
class SignatoryParty extends BaseComponent {
16
17
    /** @var PartyIdentification */
18
    protected $PartyIdentification;
19
20
    /** @var PartyName */
21
    protected $PartyName;
22
23
    function xmlSerialize(Writer $writer) {
24
        $me = $this;
25
        $writer->write([
26
            SchemaNS::CAC . 'PartyIdentification'  => $me->PartyIdentification,
27
            SchemaNS::CAC . 'PartyName'         => $me->PartyName
28
        ]);
29
    }
30
31
    public function getPartyIdentification() {
32
        return $this->PartyIdentification;
33
    }
34
35
    public function setPartyIdentification(PartyIdentification $PartyIdentification) {
36
        $this->PartyIdentification = $PartyIdentification;
37
        return $this;
38
    }
39
40
    public function getPartyName() {
41
        return $this->PartyName;
42
    }
43
44
    public function setPartyName(PartyName $PartyName) {
45
        $this->PartyName = $PartyName;
46
        return $this;
47
    }
48
49
}
50