for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MÓDULO DE EMISIÓN ELECTRÓNICA F72X
* UBL 2.1
* Version 1.0
*
* Copyright 2019, Jaime Cruz
*/
namespace F72X\UblComponent;
use Sabre\Xml\Writer;
class TaxScheme extends BaseComponent {
protected $ID;
protected $IDAttributes = [];
protected $Name;
protected $TaxTypeCode;
function xmlSerialize(Writer $writer) {
$writer->write([
'name' => SchemaNS::CBC . 'ID',
'value' => $this->ID,
'attributes' => $this->IDAttributes
]);
if (!is_null($this->Name)) {
SchemaNS::CBC . 'Name' => $this->Name
}
if (!is_null($this->TaxTypeCode)) {
SchemaNS::CBC . 'TaxTypeCode' => $this->TaxTypeCode
public function getID() {
return $this->ID;
public function setID($ID) {
$this->ID = $ID;
return $this;
public function getIDAttributes() {
return $this->IDAttributes;
public function setIDAttributes($IDAtt) {
$this->IDAttributes = $IDAtt;
public function setIDAttribute($attribute, $value) {
$this->IDAttributes[$attribute] = $value;
public function getName() {
return $this->Name;
public function setName($Name) {
$this->Name = $Name;
public function getTaxTypeCode() {
return $this->TaxTypeCode;
public function setTaxTypeCode($TaxTypeCode) {
$this->TaxTypeCode = $TaxTypeCode;