Signature::getDigitalSignatureAttachment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 1
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\XmlSerializable;
15
16
class Signature extends BaseComponent {
17
18
    protected $ID;
19
20
    /** @var SignatoryParty */
21
    protected $SignatoryParty;
22
23
    /** @var DigitalSignatureAttachment */
24
    protected $DigitalSignatureAttachment;
25
26
    function xmlSerialize(Writer $writer) {
27
        $me = $this;
28
        $writer->write([
29
            SchemaNS::CBC . 'ID'                            => $me->ID,
30
            SchemaNS::CAC . 'SignatoryParty'                => $me->SignatoryParty,
31
            SchemaNS::CAC . 'DigitalSignatureAttachment'    => $me->DigitalSignatureAttachment
32
        ]);
33
    }
34
    public function getID() {
35
        return $this->ID;
36
    }
37
38
    public function setID($ID) {
39
        $this->ID = $ID;
40
        return $this;
41
    }
42
43
    public function getSignatoryParty() {
44
        return $this->SignatoryParty;
45
    }
46
47
    public function setSignatoryParty(SignatoryParty $SignatoryParty) {
48
        $this->SignatoryParty = $SignatoryParty;
49
        return $this;
50
    }
51
    public function getDigitalSignatureAttachment() {
52
        return $this->DigitalSignatureAttachment;
53
    }
54
55
    public function setDigitalSignatureAttachment(DigitalSignatureAttachment $DigitalSignatureAttachment) {
56
        $this->DigitalSignatureAttachment = $DigitalSignatureAttachment;
57
        return $this;
58
    }
59
60
}
61