Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user