<?php

namespace Modules\Consultation\Repository;

use Helpers\QueryBuilder\AbsRepository;

class ConsultationPiecesJointes extends AbsRepository
{

    
    /**
     * getAttachmentParams
     *
     * @param  string $language
     * @return array<mixed>
     */
    public function getAttachmentParams(string $language): array
    {
        $query = "SELECT NO_ORDRE, TYPE_PJ_PARAM, LIBELLE
            FROM AO_PIJO_TYPES WHERE COD_LNG = :COD_LNG ";
        
        $params = [':COD_LNG' => $language];
        
        return $this->fetchAssocAll($query, $params);
    }
}
