OpenXE/classes/Modules/FiskalyApi/Transaction/Payment/BasePayment.php
2021-05-21 08:49:41 +02:00

40 lines
735 B
PHP

<?php
declare(strict_types=1);
namespace Xentral\Modules\FiskalyApi\Transaction\Payment;
abstract class BasePayment
{
/** @var string */
private $paymentType;
/** @var float */
private $amount;
/**
* BasePayment constructor.
*
* @param string $paymentType
* @param float $amount
*/
protected function __construct(string $paymentType, float $amount)
{
$this->paymentType = $paymentType;
$this->amount = $amount;
}
/**
* @return string
*/
public function getPaymentType(): string {
return $this->paymentType;
}
/**
* @return float
*/
public function getAmount(): float {
return $this->amount;
}
}