<?php

declare(strict_types=1);

namespace App\Module\Commercial\Domain\Repository;

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

interface PaymentTypeRepositoryInterface
{
    public function findById(int $id): ?PaymentType;

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