<?php

namespace Modules\Stock\Service\LigneImportUniversel\Factory;

use Modules\Stock\Enum\LigneImportUniverselCodTabEnum;
use Modules\Stock\Enum\LigneImportUniverselOrigineEnum;
use Modules\Stock\Enum\LigneImportUniverselTypeEnum;
use Modules\Stock\Service\LigneImportUniversel\Interface\LigneImportUniverselFactoryInterface;

class QteDemLigneImportUniverselFactory extends LigneImportUniverselFactory implements LigneImportUniverselFactoryInterface
{
    public function create(string $codMdle): array
    {
        return [
            'COD_MDLE' => $codMdle,
            'COD_INT' => 'QTE_DEM',
            'LIBELLE' => 'Quantité',
            'ORIGINE' => LigneImportUniverselOrigineEnum::D->name,
            'COLONNE' => 0,
            'LIGNE' => 0,
            'COD_TAB' => LigneImportUniverselCodTabEnum::DS->name,
            'RANG' => 3,
            'TYPE' => LigneImportUniverselTypeEnum::N->name,
            'FORMAT' => 'N8.3',
            'OBLIGATOIRE' => false
        ];
    }
}
