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
|
|||
25 | return $this->ExtensionContent; |
||
26 | } |
||
27 | |||
28 | function setExtensionContent($ExtensionContent) { |
||
0 ignored issues
–
show
|
|||
29 | $this->ExtensionContent = $ExtensionContent; |
||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | } |
||
34 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.