<?php

namespace Modules\Additional\Specifique\Client56\Html;

use Psr\Container\ContainerInterface;
use Skeleton\Router;

class GestionFacture
{
    private Router $router;
    /**
     * contenaire
     *
     * @var ContainerInterface
     */
    private $contenaire;
    
    /** @phpstan-ignore-next-line */
    public function __construct(Router $router, ContainerInterface $contenaire, \PDO $pdo)
    {
        $this->router = $router;
        $this->contenaire = $contenaire;
    }
    
    
    /**
     * lienSpec
     *
     * @param array<mixed> $array
     * @return string
     */
    public function lienSpec(array $array) : string
    {
        /** @var \Helpers\Trad\ITrad */
        $trad = $this->contenaire->get(\Helpers\Trad\ITrad::class);
        $html =
        "<li>
            <a class ='specifique' href= ".$this->router->generateUri('Specifique56.Index.menuIntermediaireFactureSpecifique', ['numFact' => $array['NUM_FACT']]).">
                ".$trad->t('Spécifique client')."
            </a>
        </li>";
        return $html;
    }
}
