Test Setup Failed
Push — master ( b44967...99ee47 )
by JAIME ELMER
03:11
created

src/UblComponent/UBLExtension.php (2 issues)

Severity
1
<?php
2
3
/**
4
 * FACTURA ELECTRÓNICA SUNAT
5
 * UBL 2.1
6
 * Version 1.0
7
 * 
8
 * Copyright 2018, Jaime Cruz
9
 */
10
11
namespace F72X\UblComponent;
12
13
use Sabre\Xml\Writer;
14
15
class UBLExtension extends BaseComponent {
16
17
    /** @var mixed */
18
    protected $ExtensionContent;
19
20
    function xmlSerialize(Writer $writer) {
21
        $writer->write([SchemaNS::EXT . 'ExtensionContent' => $this->ExtensionContent]);
22
    }
23
24
    function getExtensionContent() {
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
25
        return $this->ExtensionContent;
26
    }
27
28
    function setExtensionContent($ExtensionContent) {
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
29
        $this->ExtensionContent = $ExtensionContent;
30
        return $this;
31
    }
32
33
}
34