fix logic and tests, update docker CI file
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Services\Fees\FeeRefundCalculatorService;
|
||||
|
||||
class FeeCalculationService
|
||||
{
|
||||
public function __construct(
|
||||
private FeeRefundCalculatorService $refundCalculator
|
||||
) {
|
||||
}
|
||||
|
||||
public function calculateRefund(array $students, int $parentId): float
|
||||
{
|
||||
$result = $this->refundCalculator->calculateRefund($students, $parentId);
|
||||
return (float) ($result['refund_amount'] ?? 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user