<?php

namespace Modules\Additional\Specifique\Client177\Modules\Liste\Service;

use Entity\Model\OxaUserPanier;
use Entity\Model\Sectimpu;
use Helpers\ChampsSupplementaire\ChampSupp;
use Helpers\Outil\Sql;
use Modules\Panier\Repository\PanierEntete;

class SpecifiqueCentreLivraison
{
    /**
     * Summary of initCentreBySi
     * @param \pdo $pdo
     * @param mixed $array
     * @return string|false
     */
    public function initCentreBySi(\pdo $pdo, $array = [])
    {
        if (isset($array['SI'])) {
            $newsCentre = ChampSupp::getEnregByValueSpecific([
                'COD_TAB' => 'CENTRE',
                'VALEUR' => $array['SI'],
                'typedico' => 'PARNCS0061',
                'codedico' => 'NCS_CENTRE_CODE_CI',
            ], $pdo);
    
            return $newsCentre;
        }

        return false;
    }

}
