src/Entity/Typeimport.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * Typeimport
  7. *
  8. * @ORM\Table(name="TYPEIMPORT")
  9. * @ORM\Entity
  10. */
  11. class Typeimport
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="idtypeimport", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $idtypeimport;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="libelletypeimport", type="string", length=255, nullable=false)
  25. */
  26. private $libelletypeimport;
  27. /**
  28. * @var string|null
  29. *
  30. * @ORM\Column(name="colonnes", type="text", length=0, nullable=true)
  31. */
  32. private $colonnes;
  33. /**
  34. * @var string|null
  35. *
  36. * @ORM\Column(name="nomtraitement", type="string", length=255, nullable=true)
  37. */
  38. private $nomtraitement;
  39. /**
  40. * @var string
  41. *
  42. * @ORM\Column(name="nombase", type="string", length=255, nullable=false)
  43. */
  44. private $nombase;
  45. /**
  46. * @var string|null
  47. *
  48. * @ORM\Column(name="identificationkey", type="text", length=0, nullable=true)
  49. */
  50. private $identificationkey;
  51. /**
  52. * @var bool Seuls les types actifs sont reconnus à l'import
  53. *
  54. * @ORM\Column(name="actif", type="boolean", nullable=false, options={"default"=1})
  55. */
  56. private $actif = true;
  57. /**
  58. * @var int|null Ordre d'affichage (chronologie des imports)
  59. *
  60. * @ORM\Column(name="ordre", type="integer", nullable=true)
  61. */
  62. private $ordre;
  63. /**
  64. * @var string|null Traitement métier : App\Import\Traitement\Traitement<classetraitement>
  65. *
  66. * @ORM\Column(name="classetraitement", type="string", length=50, nullable=true)
  67. */
  68. private $classetraitement;
  69. /**
  70. * @var string|null Texte d'aide affiché dans la page d'aide des imports
  71. *
  72. * @ORM\Column(name="aide", type="text", length=0, nullable=true)
  73. */
  74. private $aide;
  75. public function getIdtypeimport(): ?int
  76. {
  77. return $this->idtypeimport;
  78. }
  79. public function getLibelletypeimport(): ?string
  80. {
  81. return $this->libelletypeimport;
  82. }
  83. public function setLibelletypeimport(string $libelletypeimport): static
  84. {
  85. $this->libelletypeimport = $libelletypeimport;
  86. return $this;
  87. }
  88. public function getColonnes(): ?string
  89. {
  90. return $this->colonnes;
  91. }
  92. public function setColonnes(?string $colonnes): static
  93. {
  94. $this->colonnes = $colonnes;
  95. return $this;
  96. }
  97. public function getNomtraitement(): ?string
  98. {
  99. return $this->nomtraitement;
  100. }
  101. public function setNomtraitement(?string $nomtraitement): static
  102. {
  103. $this->nomtraitement = $nomtraitement;
  104. return $this;
  105. }
  106. public function getNombase(): ?string
  107. {
  108. return $this->nombase;
  109. }
  110. public function setNombase(string $nombase): static
  111. {
  112. $this->nombase = $nombase;
  113. return $this;
  114. }
  115. public function getIdentificationkey(): ?string
  116. {
  117. return $this->identificationkey;
  118. }
  119. public function setIdentificationkey(?string $identificationkey): static
  120. {
  121. $this->identificationkey = $identificationkey;
  122. return $this;
  123. }
  124. public function isActif(): ?bool
  125. {
  126. return $this->actif;
  127. }
  128. public function setActif(bool $actif): static
  129. {
  130. $this->actif = $actif;
  131. return $this;
  132. }
  133. public function getOrdre(): ?int
  134. {
  135. return $this->ordre;
  136. }
  137. public function setOrdre(?int $ordre): static
  138. {
  139. $this->ordre = $ordre;
  140. return $this;
  141. }
  142. public function getClassetraitement(): ?string
  143. {
  144. return $this->classetraitement;
  145. }
  146. public function setClassetraitement(?string $classetraitement): static
  147. {
  148. $this->classetraitement = $classetraitement;
  149. return $this;
  150. }
  151. public function getAide(): ?string
  152. {
  153. return $this->aide;
  154. }
  155. public function setAide(?string $aide): static
  156. {
  157. $this->aide = $aide;
  158. return $this;
  159. }
  160. // Colonnes attendues, dans l'ordre
  161. public function getListeColonnes(): array
  162. {
  163. return $this->colonnes === null || $this->colonnes === '' ? [] : explode(';', $this->colonnes);
  164. }
  165. }