<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* Typeimport
*
* @ORM\Table(name="TYPEIMPORT")
* @ORM\Entity
*/
class Typeimport
{
/**
* @var int
*
* @ORM\Column(name="idtypeimport", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idtypeimport;
/**
* @var string
*
* @ORM\Column(name="libelletypeimport", type="string", length=255, nullable=false)
*/
private $libelletypeimport;
/**
* @var string|null
*
* @ORM\Column(name="colonnes", type="text", length=0, nullable=true)
*/
private $colonnes;
/**
* @var string|null
*
* @ORM\Column(name="nomtraitement", type="string", length=255, nullable=true)
*/
private $nomtraitement;
/**
* @var string
*
* @ORM\Column(name="nombase", type="string", length=255, nullable=false)
*/
private $nombase;
/**
* @var string|null
*
* @ORM\Column(name="identificationkey", type="text", length=0, nullable=true)
*/
private $identificationkey;
/**
* @var bool Seuls les types actifs sont reconnus à l'import
*
* @ORM\Column(name="actif", type="boolean", nullable=false, options={"default"=1})
*/
private $actif = true;
/**
* @var int|null Ordre d'affichage (chronologie des imports)
*
* @ORM\Column(name="ordre", type="integer", nullable=true)
*/
private $ordre;
/**
* @var string|null Traitement métier : App\Import\Traitement\Traitement<classetraitement>
*
* @ORM\Column(name="classetraitement", type="string", length=50, nullable=true)
*/
private $classetraitement;
/**
* @var string|null Texte d'aide affiché dans la page d'aide des imports
*
* @ORM\Column(name="aide", type="text", length=0, nullable=true)
*/
private $aide;
public function getIdtypeimport(): ?int
{
return $this->idtypeimport;
}
public function getLibelletypeimport(): ?string
{
return $this->libelletypeimport;
}
public function setLibelletypeimport(string $libelletypeimport): static
{
$this->libelletypeimport = $libelletypeimport;
return $this;
}
public function getColonnes(): ?string
{
return $this->colonnes;
}
public function setColonnes(?string $colonnes): static
{
$this->colonnes = $colonnes;
return $this;
}
public function getNomtraitement(): ?string
{
return $this->nomtraitement;
}
public function setNomtraitement(?string $nomtraitement): static
{
$this->nomtraitement = $nomtraitement;
return $this;
}
public function getNombase(): ?string
{
return $this->nombase;
}
public function setNombase(string $nombase): static
{
$this->nombase = $nombase;
return $this;
}
public function getIdentificationkey(): ?string
{
return $this->identificationkey;
}
public function setIdentificationkey(?string $identificationkey): static
{
$this->identificationkey = $identificationkey;
return $this;
}
public function isActif(): ?bool
{
return $this->actif;
}
public function setActif(bool $actif): static
{
$this->actif = $actif;
return $this;
}
public function getOrdre(): ?int
{
return $this->ordre;
}
public function setOrdre(?int $ordre): static
{
$this->ordre = $ordre;
return $this;
}
public function getClassetraitement(): ?string
{
return $this->classetraitement;
}
public function setClassetraitement(?string $classetraitement): static
{
$this->classetraitement = $classetraitement;
return $this;
}
public function getAide(): ?string
{
return $this->aide;
}
public function setAide(?string $aide): static
{
$this->aide = $aide;
return $this;
}
// Colonnes attendues, dans l'ordre
public function getListeColonnes(): array
{
return $this->colonnes === null || $this->colonnes === '' ? [] : explode(';', $this->colonnes);
}
}