<?php

namespace Entity\Model;

use Helpers\QueryBuilder\QueryBuilder;

class TacPijo extends QueryBuilder
{
    protected string $table = 'TAC_PIJO with (nolock)';
    protected string $primaryKey = '';
    protected array $primKey = ['TYP_ACH', 'COD_SOC', 'COD_LNG', 'NO_ORDRE'];

    /**
     * @return array<array<mixed>>
     */
    public function findAllEntity(
        string $typeAchat,
        string $societe,
        string $lang
    ) :array {
        return $this->findAll([
            'TYP_ACH' => $typeAchat,
            'COD_SOC' => $societe,
            'COD_LNG' => $lang,
        ]);
    }
}
