<?php

namespace Entity\Model;

use Helpers\QueryBuilder\QueryBuilder;
use Helpers\Trad\Trad;

class Modepaie extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'MODEPAIE with (nolock)';
    
    protected string $primaryKey = 'CODE_MDP';
    protected string $libelle = 'LIBELLE';
    public string $titre;
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }


       
    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'CODE_MDP' =>
            [
                'nomChamp' => $trad->t('Code Mode De paiement'),
                'type' => 'TEXTE',
                'taille' => 7,
                'obligatoire' => true
            ],
            'LIBELLE' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTE',
                'taille' => 20,
                'obligatoire' => true

            ],
            'CTRLDONSAI' =>
            [
                'nomChamp' => $trad->t('Controle Don sai'),
                'type' => 'RADIO',
                'taille' => 1,
                'obligatoire' => true

            ]
        ];
    }
}
