mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 21:31:01 +00:00
16 lines
409 B
PHP
16 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Adapters\Receivables;
|
|
|
|
use App\Domains\Money\Models\ExchangeRateLog;
|
|
use App\Domains\Receivables\Contracts\PaymentExchangeRateRecorder;
|
|
use App\Domains\Receivables\Models\Payment;
|
|
|
|
class MoneyPaymentExchangeRateRecorder implements PaymentExchangeRateRecorder
|
|
{
|
|
public function record(Payment $payment): void
|
|
{
|
|
ExchangeRateLog::addExchangeRateLog(model: $payment);
|
|
}
|
|
}
|