PricingReference::xmlSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 4
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 PricingReference extends BaseComponent {
16
17
    /** @var AlternativeConditionPrice */
18
    protected $AlternativeConditionPrice;
19
    protected $validations = ['AlternativeConditionPrice'];
20
21
    function xmlSerialize(Writer $writer) {
22
        $this->validate();
23
        $writer->write([
24
            SchemaNS::CAC . 'AlternativeConditionPrice' => $this->AlternativeConditionPrice
25
        ]);
26
    }
27
28
    public function getAlternativeConditionPrice() {
29
        return $this->AlternativeConditionPrice;
30
    }
31
32
    public function setAlternativeConditionPrice(AlternativeConditionPrice $AlternativeConditionPrice) {
33
        $this->AlternativeConditionPrice = $AlternativeConditionPrice;
34
        return $this;
35
    }
36
37
}
38