<?php

namespace Entity\Model;

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

class Douanes extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'DOUANES with (nolock)';
    
    protected string $primaryKey = 'DOUANE';
    protected string $libelle = 'LIBELLE';
    public string $titre;
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }
    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'DOUANES' =>
            [
                'nomChamp' => $trad->t('Code Douanes'),
                'type' => 'TEXTE',
                'taille' => 12,
                'obligatoire' => true
            ],
            'LIBELLE' =>
            [
                'nomChamp' => $trad->t('Libelle'),
                'type' => 'TEXTAREA',
                'taille' => 1500,
                'obligatoire' => true

            ],

        ];
    }
}
