<?php

declare(strict_types=1);

namespace App\Module\Commercial\Domain\Repository;

use App\Module\Commercial\Domain\Entity\PaymentDelay;

interface PaymentDelayRepositoryInterface
{
    public function findById(int $id): ?PaymentDelay;

    /**
     * Retourne tous les delais de reglement tries position ASC puis label ASC.
     *
     * @return list<PaymentDelay>
     */
    public function findAllOrdered(): array;
}
