<?php

namespace Entity\Model;

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

class ListeDocument extends QueryBuilder
{
    protected \PDO $pdo;
    
    protected string $table = 'DOCUMENT with (nolock)';
    
    protected string $primaryKey = 'DOCUMENT';
    public string $titre;
    public function __construct(\PDO $pdo)
    {
        
        $this->pdo = $pdo;
    }

    public function getArchitecture(\Helpers\Trad\ITrad $trad)
    {
        return  [
            'DOCUMENT' =>
            [
                'nomChamp' => $trad->t('Code Caracteristique'),
                'type' => 'TEXTAREA',
                'taille' => 60,
                'obligatoire' => true
            ],


        ];
    }
}
