<?php

declare(strict_types=1);

namespace App\Service\Payment;

final class PaymentStatusService
{
    public function resolveStatus(float $expectedAmount, float $paidAmount): string
    {
        if ($paidAmount <= 0.0) {
            return 'IMPAYE';
        }

        if ($paidAmount >= $expectedAmount) {
            return 'PAYE';
        }

        return 'PARTIEL';
    }
}
