| Total Complexity | 12 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class TaxScheme extends BaseComponent { |
||
| 16 | |||
| 17 | protected $ID; |
||
| 18 | protected $IDAttributes = []; |
||
| 19 | protected $Name; |
||
| 20 | protected $TaxTypeCode; |
||
| 21 | |||
| 22 | function xmlSerialize(Writer $writer) { |
||
| 23 | $writer->write([ |
||
| 24 | 'name' => SchemaNS::CBC . 'ID', |
||
| 25 | 'value' => $this->ID, |
||
| 26 | 'attributes' => $this->IDAttributes |
||
| 27 | ]); |
||
| 28 | if (!is_null($this->Name)) { |
||
| 29 | $writer->write([ |
||
| 30 | SchemaNS::CBC . 'Name' => $this->Name |
||
| 31 | ]); |
||
| 32 | } |
||
| 33 | if (!is_null($this->TaxTypeCode)) { |
||
| 34 | $writer->write([ |
||
| 35 | SchemaNS::CBC . 'TaxTypeCode' => $this->TaxTypeCode |
||
| 36 | ]); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getID() { |
||
| 41 | return $this->ID; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function setID($ID) { |
||
| 45 | $this->ID = $ID; |
||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | public function getIDAttributes() { |
||
| 49 | return $this->IDAttributes; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setIDAttributes($IDAtt) { |
||
| 55 | } |
||
| 56 | |||
| 57 | public function setIDAttribute($attribute, $value) { |
||
| 58 | $this->IDAttributes[$attribute] = $value; |
||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getName() { |
||
| 63 | return $this->Name; |
||
| 64 | } |
||
| 65 | |||
| 66 | public function setName($Name) { |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getTaxTypeCode() { |
||
| 72 | return $this->TaxTypeCode; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function setTaxTypeCode($TaxTypeCode) { |
||
| 78 | } |
||
| 79 | |||
| 80 | } |
||
| 81 |