src/Entity/Imports/Import.php line 26

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Imports;
  3. use App\Entity\Articles\FamilleCompta;
  4. use App\Entity\Clients\Client;
  5. use App\Entity\Fournisseurs\Fournisseur;
  6. use App\Entity\Transporteurs\Transporteur;
  7. use App\Entity\Utilisateur\Utilisateur;
  8. use DateTime;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Symfony\Component\HttpFoundation\File\File;
  12. use Symfony\Component\HttpFoundation\File\UploadedFile;
  13. use Symfony\Component\Validator\Constraints as Assert;
  14. use App\Annotations\SecuredEntity;
  15. /**
  16.  * Import
  17.  *
  18.  * @ORM\Table("import__import")
  19.  * @ORM\Entity(repositoryClass="App\Repository\Imports\ImportRepository")
  20.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  21.  * @SecuredEntity(name="Import", group="OUTILS")
  22.  */
  23. class Import
  24. {
  25.     /**
  26.      * @ORM\Column(name="id", type="integer")
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue(strategy="AUTO")
  29.      */
  30.     private $id;
  31.     
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Imports\Entite", cascade={"persist"})
  34.      */
  35.     private $entite;
  36.     
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\Imports\ComptaImport", cascade={"persist"})
  39.      */
  40.     private $comptaImport;
  41.     
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\Transporteurs\Transporteur", cascade={"persist"})
  44.      */
  45.     private $transporteur;
  46.     
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity="App\Entity\Clients\Client", cascade={"persist"})
  49.      */
  50.     private $client;
  51.     
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseurs\Fournisseur", cascade={"persist"})
  54.      */
  55.     private $fournisseur;
  56.     
  57.     /**
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="import")
  59.      * @ORM\JoinColumn(nullable=true)
  60.      */
  61.     private $utilisateur;
  62.     
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Imports\Champ")
  65.      * @ORM\JoinColumn(nullable=true)
  66.      */
  67.     private $champRecherche;
  68.     /**
  69.      * @ORM\Column(name="action", type="string", length=255, nullable=true)
  70.      */
  71.     private $action;
  72.     
  73.     /**
  74.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\FamilleCompta")
  75.      * 
  76.      */
  77.     private $familleCompta;
  78.     
  79.     /**
  80.      * @var boolean
  81.      * @ORM\Column(name="execute", type="boolean", nullable=true)
  82.      */
  83.     protected $execute;
  84.     
  85.     /**
  86.      * @var boolean
  87.      * @ORM\Column(name="echec", type="boolean", nullable=true)
  88.      */
  89.     protected $echec
  90.     
  91.     /**
  92.      * @var boolean
  93.      * @ORM\Column(name="annule_remplace", type="boolean", nullable=true)
  94.      */
  95.     protected $annuleEtRemplace;
  96.     
  97.     /**
  98.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  99.      */
  100.     private $libelle;
  101.     
  102.     /**
  103.      * @ORM\Column(name="nb_lignes_exclure", type="integer", nullable=true)
  104.      */
  105.     private $nbLignesExclure;
  106.     
  107.     /**
  108.      * @ORM\Column(name="progression", type="integer", nullable=true)
  109.      */
  110.     private $progression;
  111.     private $file;
  112.     /**
  113.      * @ORM\Column(name="csv", type="string", length=255, nullable=true)
  114.      */
  115.     private $csv;
  116.     
  117.     /**
  118.      * @ORM\Column(name="fichier_log", type="string", length=255, nullable=true)
  119.      */
  120.     private $fichierLog;
  121.     /**
  122.      * @ORM\Column(name="date_debut_execution", type="datetime", nullable=true)
  123.      */
  124.     private $dateDebutExecution;
  125.     
  126.     /**
  127.      * @ORM\Column(name="date_fin_execution", type="datetime", nullable=true)
  128.      */
  129.     private $dateFinExecution;
  130.     /**
  131.      * @ORM\Column(name="date", type="datetime", nullable=true)
  132.      */
  133.     private $date;
  134.     /**
  135.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  136.      */
  137.     private $dateSuppression;
  138.     /**
  139.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  140.      * @Gedmo\Timestampable(on="update")
  141.      */
  142.     private $dateMaj;
  143.     /**
  144.      * @ORM\Column(name="logs", type="text", nullable=true)
  145.      */
  146.     private $logs;
  147.     
  148.     /**
  149.      * @ORM\Column(name="liaisons", type="text", nullable=true)
  150.      */
  151.     private $liaisons;
  152.     
  153.     /**
  154.      * @ORM\Column(name="parametres", type="text", nullable=true)
  155.      */
  156.     private $parametres;
  157.     
  158.     /**
  159.      * @ORM\Column(name="pid", type="integer", nullable=true)
  160.      */
  161.     private $pid;    
  162.     
  163.     
  164.     public function __construct()
  165.     {
  166.         $this->date = new Datetime();
  167.         $this->progression 0;
  168.         $this->nbLignesExclure 1;
  169.         $this->annuleEtRemplace 0;
  170.         $this->echec false;
  171.     }
  172.     public function getId(): int
  173.     {
  174.         return $this->id;
  175.     }
  176.     public function setLibelle(?string $libelle): Import
  177.     {
  178.         $this->libelle $libelle;
  179.         return $this;
  180.     }
  181.     public function getLibelle(): ?string
  182.     {
  183.         return $this->libelle;
  184.     }
  185.     public function setDate(?DateTime $date): Import
  186.     {
  187.         $this->date $date;
  188.         return $this;
  189.     }
  190.     public function getDate(): ?DateTime
  191.     {
  192.         return $this->date;
  193.     }
  194.     public function setDateSuppression(?DateTime $dateSuppression): Import
  195.     {
  196.         $this->dateSuppression $dateSuppression;
  197.         return $this;
  198.     }
  199.     public function getDateSuppression(): ?DateTime
  200.     {
  201.         return $this->dateSuppression;
  202.     }
  203.     public function setDateMaj(?DateTime $dateMaj): Import
  204.     {
  205.         $this->dateMaj $dateMaj;
  206.         return $this;
  207.     }
  208.     public function getDateMaj(): ?DateTime
  209.     {
  210.         return $this->dateMaj;
  211.     }
  212.     public function setLogs(?string $logs): Import
  213.     {
  214.         $this->logs $logs;
  215.         return $this;
  216.     }
  217.     public function getLogs(): ?string
  218.     {
  219.         return $this->logs;
  220.     }
  221.     public function setUtilisateur(?Utilisateur $utilisateur): Import
  222.     {
  223.         $this->utilisateur $utilisateur;
  224.         return $this;
  225.     }
  226.     public function getUtilisateur(): ?Utilisateur
  227.     {
  228.         return $this->utilisateur;
  229.     }
  230.     
  231.     public function __toString() {
  232.         return $this->libelle;
  233.     }    
  234.     public function setEntite(?Entite $entite): Import
  235.     {
  236.         $this->entite $entite;
  237.         return $this;
  238.     }
  239.     public function getEntite(): ?Entite
  240.     {
  241.         return $this->entite;
  242.     }
  243.     public function getFile(): ?UploadedFile
  244.     {
  245.         return $this->file;
  246.     }
  247.     public function setFile(File $file)
  248.     {
  249.         $this->file $file;
  250.         return $this;
  251.     }
  252.     public function setCsv(?string $csv): Import
  253.     {
  254.         $this->csv $csv;
  255.         return $this;
  256.     }
  257.     public function getCsv(): ?string
  258.     {
  259.         return $this->csv;
  260.     }
  261.     public function setAction(?string $action): Import
  262.     {
  263.         $this->action $action;
  264.         return $this;
  265.     }
  266.     public function getAction(): ?string
  267.     {
  268.         return $this->action;
  269.     }
  270.     public function setExecute(?bool $execute): Import
  271.     {
  272.         $this->execute $execute;
  273.         return $this;
  274.     }
  275.     public function getExecute(): ?bool
  276.     {
  277.         return $this->execute;
  278.     }
  279.     public function setLiaisons(?string $liaisons): Import
  280.     {
  281.         $this->liaisons $liaisons;
  282.         return $this;
  283.     }
  284.     public function getLiaisons(): ?string
  285.     {
  286.         return $this->liaisons;
  287.     }
  288.     public function setDateDebutExecution(?DateTime $dateDebutExecution): Import
  289.     {
  290.         $this->dateDebutExecution $dateDebutExecution;
  291.         return $this;
  292.     }
  293.     public function getDateDebutExecution(): ?DateTime
  294.     {
  295.         return $this->dateDebutExecution;
  296.     }
  297.     public function setDateFinExecution(?DateTime $dateFinExecution): Import
  298.     {
  299.         $this->dateFinExecution $dateFinExecution;
  300.         return $this;
  301.     }
  302.     public function getDateFinExecution(): ?DateTime
  303.     {
  304.         return $this->dateFinExecution;
  305.     }
  306.     public function setFichierLog(?string $fichierLog): Import
  307.     {
  308.         $this->fichierLog $fichierLog;
  309.         return $this;
  310.     }
  311.     public function getFichierLog(): ?string
  312.     {
  313.         return $this->fichierLog;
  314.     }
  315.     public function setParametres(?string $parametres): Import
  316.     {
  317.         $this->parametres $parametres;
  318.         return $this;
  319.     }
  320.     public function getParametres(): ?string
  321.     {
  322.         return $this->parametres;
  323.     }
  324.     public function setChampRecherche(?Champ $champRecherche): Import
  325.     {
  326.         $this->champRecherche $champRecherche;
  327.         return $this;
  328.     }
  329.     public function getChampRecherche(): ?Champ
  330.     {
  331.         return $this->champRecherche;
  332.     }
  333.     public function setComptaImport(?ComptaImport $comptaImport): Import
  334.     {
  335.         $this->comptaImport $comptaImport;
  336.         return $this;
  337.     }
  338.     public function getComptaImport(): ?ComptaImport
  339.     {
  340.         return $this->comptaImport;
  341.     }
  342.     public function setFamilleCompta(?FamilleCompta $familleCompta): Import
  343.     {
  344.         $this->familleCompta $familleCompta;
  345.         return $this;
  346.     }
  347.     public function getFamilleCompta(): ?FamilleCompta
  348.     {
  349.         return $this->familleCompta;
  350.     }
  351.     public function setTransporteur(?Transporteur $transporteur): Import
  352.     {
  353.         $this->transporteur $transporteur;
  354.         return $this;
  355.     }
  356.     public function getTransporteur(): ?Transporteur
  357.     {
  358.         return $this->transporteur;
  359.     }
  360.     public function setNbLignesExclure(?int $nbLignesExclure): Import
  361.     {
  362.         $this->nbLignesExclure $nbLignesExclure;
  363.         return $this;
  364.     }
  365.     public function getNbLignesExclure(): ?int
  366.     {
  367.         return $this->nbLignesExclure;
  368.     }
  369.     public function setProgression(?int $progression): Import
  370.     {
  371.         $this->progression $progression;
  372.         return $this;
  373.     }
  374.     public function getProgression(): ?int
  375.     {
  376.         return $this->progression;
  377.     }
  378.     public function setAnnuleEtRemplace(?bool $annuleEtRemplace): Import
  379.     {
  380.         $this->annuleEtRemplace $annuleEtRemplace;
  381.         return $this;
  382.     }
  383.     public function getAnnuleEtRemplace(): ?bool
  384.     {
  385.         return $this->annuleEtRemplace;
  386.     }
  387.     public function setPid(?int $pid): Import
  388.     {
  389.         $this->pid $pid;
  390.         return $this;
  391.     }
  392.     public function getPid(): ?int
  393.     {
  394.         return $this->pid;
  395.     }    
  396.     public function setEchec(?bool $echec): Import
  397.     {
  398.         $this->echec $echec;
  399.         return $this;
  400.     }
  401.     public function getEchec(): ?bool
  402.     {
  403.         return $this->echec;
  404.     }
  405.     public function setClient(?Client $client): Import
  406.     {
  407.         $this->client $client;
  408.         return $this;
  409.     }
  410.     public function getClient(): ?Client
  411.     {
  412.         return $this->client;
  413.     }
  414.     public function setFournisseur(?Fournisseur $fournisseur): Import
  415.     {
  416.         $this->fournisseur $fournisseur;
  417.         return $this;
  418.     }
  419.     public function getFournisseur(): ?Fournisseur
  420.     {
  421.         return $this->fournisseur;
  422.     }
  423. }