<?php
namespace App\Utils\BaseParser\Structure\StructureParser\Types; abstract class PriceTaxComponent extends \App\Utils\BaseParser\Structure\StructureParser\Types\BaseAbstract { public $amount = null; public $VAT = null; public $currency = null; public $code = null; public function __construct($code=null, $amount=null, $currency=null, $VAT=null) { $this->code = $code; $this->amount = $amount; $this->currency = $currency; $this->VAT = $VAT; } public function getId() { return sprintf("%s:%.6f,%.6f,%s", $this->code, $this->amount, $this->VAT, $this->currency); } } 