src/Entity/Export/Export.php line 27

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Export;
  3. use App\Entity\Articles\Marque;
  4. use App\Entity\ExportCsv\EntiteExportCsv;
  5. use App\Entity\Fournisseurs\Fournisseur;
  6. use App\Entity\MarketPlace\CompteMarketPlace;
  7. use App\Entity\Utilisateur\Utilisateur;
  8. use DateTime;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. use Symfony\Component\Validator\Constraints as Assert;
  14. use App\Annotations\SecuredEntity;
  15. /**
  16.  * Export
  17.  *
  18.  * @ORM\Table("export__export")
  19.  * @ORM\Entity(repositoryClass="App\Repository\Export\ExportRepository")
  20.  * @ORM\HasLifecycleCallbacks()
  21.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  22.  * @SecuredEntity(name="Export", group="OUTILS")
  23.  */
  24. class Export
  25. {
  26.     /**
  27.      * @ORM\Column(name="id", type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @ORM\Column(name="progression", type="integer", nullable=true)
  34.      */
  35.     private $progression;
  36.     /**
  37.      * @ORM\Column(name="requete", type="text", nullable=true)
  38.      */
  39.     private $requete;
  40.     /**
  41.     * @ORM\OneToMany(targetEntity="App\Entity\Export\Export_champs_exportables", mappedBy="export", cascade={"persist"})
  42.     */
  43.     private $champsAexporter;
  44.     /**
  45.      * @ORM\Column(name="entity_name", type="string", length=255)
  46.      */
  47.     private $entityName;
  48.     /**
  49.      * @ORM\Column(name="entity", type="string", length=255, nullable=true)
  50.      */
  51.     private $entity;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\ExportCsv\EntiteExportCsv")
  54.      * @ORM\JoinColumn(nullable=false)
  55.      */
  56.     private $entiteExportCsv;
  57.     /**
  58.      * @ORM\Column(name="format", type="string", length=255)
  59.      */
  60.     private $format;
  61.     /**
  62.      * @ORM\Column(name="date_creation", type="datetime", nullable=true)
  63.      */
  64.     private $dateCreation;
  65.     /**
  66.      * @ORM\Column(name="date_fin", type="datetime", nullable=true)
  67.      */
  68.     private $dateFin;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur")
  71.      * @ORM\JoinColumn(nullable=true)
  72.      */
  73.     private $utilisateur;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseurs\Fournisseur")
  76.      * @ORM\JoinColumn(nullable=true)
  77.      */
  78.     private $fournisseur;
  79.     /**
  80.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Marque")
  81.      * @ORM\JoinColumn(nullable=true)
  82.      */
  83.     private $marque;
  84.     /**
  85.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\CompteMarketPlace", cascade={"persist"})
  86.      */
  87.       private $compteMarketPlace;
  88.     /**
  89.      * @ORM\Column(name="archive", type="boolean", nullable=true)
  90.      */
  91.     private $archive;
  92.     /**
  93.      * @ORM\Column(name="articlesComposes", type="boolean", nullable=true)
  94.      */
  95.     private $articlesComposes;
  96.     /**
  97.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  98.      */
  99.     private $dateSuppression;
  100.     /**
  101.      * @ORM\Column(name="telecharge", type="boolean", nullable=true)
  102.      */
  103.     private $telecharge;
  104.     /**
  105.      * @ORM\Column(name="journal", type="string", length=255, nullable=true)
  106.      */
  107.     private $journal;
  108.     /**
  109.      * @ORM\Column(name="date_export_comptabilite", type="datetime", nullable=true)
  110.      */
  111.     private $dateExportComptabilite;
  112.     /**
  113.      * @var boolean
  114.      * @ORM\Column(name="echec", type="boolean", nullable=true)
  115.      */
  116.     protected $echec;
  117.     /**
  118.      * @ORM\Column(name="pid", type="integer", nullable=true)
  119.      */
  120.     private $pid;
  121.     /**
  122.      * @var boolean
  123.      * @ORM\Column(name="execute", type="boolean", nullable=true)
  124.      */
  125.     protected $execute;
  126.     /**
  127.      * @var DateTime
  128.      *
  129.      * @ORM\Column(name="date_debut_execution", type="datetime", nullable=true)
  130.      */
  131.       private $dateDebutExecution;
  132.     /**
  133.      * @ORM\Column(name="date_telechargement", type="datetime", nullable=true)
  134.      */
  135.     private $dateTelechargement;
  136.     /**
  137.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur")
  138.      * @ORM\JoinColumn(nullable=true)
  139.      */
  140.     private $utilisateurTelechargement;
  141.     /**
  142.      * @ORM\Column(name="date_filtre_debut", type="datetime", nullable=true)
  143.      */
  144.     private $dateFiltreDebut;
  145.     /**
  146.      * @ORM\Column(name="date_filtre_fin", type="datetime", nullable=true)
  147.      */
  148.     private $dateFiltreFin;
  149.     public function __construct(){
  150.         $this->dateCreation     = new DateTime();
  151.         $this->articlesComposes false;
  152.         $this->progression      0;
  153.         $this->echec            false;
  154.         $this->champsAexporter  = new ArrayCollection();
  155.     }
  156.     public function getId(): int
  157.     {
  158.         return $this->id;
  159.     }
  160.     public function setRequete(?string $requete): Export
  161.     {
  162.         $this->requete $requete;
  163.         return $this;
  164.     }
  165.     public function getRequete(): ?string
  166.     {
  167.         return $this->requete;
  168.     }
  169.     public function setEntityName(string $entityName): Export
  170.     {
  171.         $this->entityName $entityName;
  172.         return $this;
  173.     }
  174.     public function getEntityName(): string
  175.     {
  176.         return $this->entityName;
  177.     }
  178.     public function setFormat(string $format): Export
  179.     {
  180.         $this->format $format;
  181.         return $this;
  182.     }
  183.     public function getFormat(): string
  184.     {
  185.         return $this->format;
  186.     }
  187.     public function setDateCreation(?DateTime $dateCreation): Export
  188.     {
  189.         $this->dateCreation $dateCreation;
  190.         return $this;
  191.     }
  192.     public function getDateCreation(): ?DateTime
  193.     {
  194.         return $this->dateCreation;
  195.     }
  196.     public function setDateFin(?DateTime $dateFin): Export
  197.     {
  198.         $this->dateFin $dateFin;
  199.         return $this;
  200.     }
  201.     public function getDateFin(): ?DateTime
  202.     {
  203.         return $this->dateFin;
  204.     }
  205.     public function addChampsAexporter(Export_champs_exportables $champsAexporter): Export
  206.     {
  207.         $this->champsAexporter[] = $champsAexporter;
  208.         $champsAexporter->setExport($this);
  209.         return $this;
  210.     }
  211.     public function removeChampsAexporter(Export_champs_exportables $champsAexporter)
  212.     {
  213.         $this->champsAexporter->removeElement($champsAexporter);
  214.     }
  215.     public function getChampsAexporter(): Collection
  216.     {
  217.         return $this->champsAexporter;
  218.     }
  219.     public function setUtilisateur(?Utilisateur $utilisateur): Export
  220.     {
  221.         $this->utilisateur $utilisateur;
  222.         return $this;
  223.     }
  224.     public function getUtilisateur(): ?Utilisateur
  225.     {
  226.         return $this->utilisateur;
  227.     }
  228.     public function setEntity(string $entity): Export
  229.     {
  230.         $this->entity $entity;
  231.         return $this;
  232.     }
  233.     public function getEntity(): string
  234.     {
  235.         return $this->entity;
  236.     }
  237.     public function setFournisseur(?Fournisseur $fournisseur): Export
  238.     {
  239.         $this->fournisseur $fournisseur;
  240.         return $this;
  241.     }
  242.     public function getFournisseur(): ?Fournisseur
  243.     {
  244.         return $this->fournisseur;
  245.     }
  246.     public function setArticlesComposes(?bool $articlesComposes): Export
  247.     {
  248.         $this->articlesComposes $articlesComposes;
  249.         return $this;
  250.     }
  251.     public function getArticlesComposes(): ?bool
  252.     {
  253.         return $this->articlesComposes;
  254.     }
  255.     public function setMarque(?Marque $marque): Export
  256.     {
  257.         $this->marque $marque;
  258.         return $this;
  259.     }
  260.     public function getMarque(): ?Marque
  261.     {
  262.         return $this->marque;
  263.     }
  264.     public function setProgression(?int $progression): Export
  265.     {
  266.         $this->progression $progression;
  267.         return $this;
  268.     }
  269.     public function getProgression(): ?int
  270.     {
  271.         return $this->progression;
  272.     }
  273.     public function setDateSuppression(?DateTime $dateSuppression): Export
  274.     {
  275.         $this->dateSuppression $dateSuppression;
  276.         return $this;
  277.     }
  278.     public function getDateSuppression(): ?DateTime
  279.     {
  280.         return $this->dateSuppression;
  281.     }
  282.     public function setTelecharge(?bool $telecharge): Export
  283.     {
  284.         $this->telecharge $telecharge;
  285.         return $this;
  286.     }
  287.     public function getTelecharge(): ?bool
  288.     {
  289.         return $this->telecharge;
  290.     }
  291.     public function setJournal(?string $journal): Export
  292.     {
  293.         $this->journal $journal;
  294.         return $this;
  295.     }
  296.     public function getJournal(): ?string
  297.     {
  298.         return $this->journal;
  299.     }
  300.     public function setDateExportComptabilite(?DateTime $dateExportComptabilite): Export
  301.     {
  302.         $this->dateExportComptabilite $dateExportComptabilite;
  303.         return $this;
  304.     }
  305.     public function getDateExportComptabilite(): ?DateTime
  306.     {
  307.         return $this->dateExportComptabilite;
  308.     }
  309.     public function setEchec(?bool $echec): Export
  310.     {
  311.         $this->echec $echec;
  312.         return $this;
  313.     }
  314.     public function getEchec(): ?bool
  315.     {
  316.         return $this->echec;
  317.     }
  318.     public function setPid(?int $pid): Export
  319.     {
  320.         $this->pid $pid;
  321.         return $this;
  322.     }
  323.     public function getPid(): ?int
  324.     {
  325.         return $this->pid;
  326.     }
  327.     public function setExecute(?bool $execute): Export
  328.     {
  329.         $this->execute $execute;
  330.         return $this;
  331.     }
  332.     public function getExecute(): ?bool
  333.     {
  334.         return $this->execute;
  335.     }
  336.     public function setDateDebutExecution(?DateTime $dateDebutExecution): Export
  337.     {
  338.         $this->dateDebutExecution $dateDebutExecution;
  339.         return $this;
  340.     }
  341.     public function getDateDebutExecution(): ?DateTime
  342.     {
  343.         return $this->dateDebutExecution;
  344.     }
  345.     public function setArchive(?bool $archive): Export
  346.     {
  347.         $this->archive $archive;
  348.         return $this;
  349.     }
  350.     public function getArchive(): ?bool
  351.     {
  352.         return $this->archive;
  353.     }
  354.     public function setDateTelechargement(?DateTime $dateTelechargement): Export
  355.     {
  356.         $this->dateTelechargement $dateTelechargement;
  357.         return $this;
  358.     }
  359.     public function getDateTelechargement(): ?DateTime
  360.     {
  361.         return $this->dateTelechargement;
  362.     }
  363.     public function setUtilisateurTelechargement(?Utilisateur $utilisateurTelechargement): Export
  364.     {
  365.         $this->utilisateurTelechargement $utilisateurTelechargement;
  366.         return $this;
  367.     }
  368.     public function getUtilisateurTelechargement(): ?Utilisateur
  369.     {
  370.         return $this->utilisateurTelechargement;
  371.     }
  372.     public function setCompteMarketPlace(?CompteMarketPlace $compteMarketPlace): Export
  373.     {
  374.         $this->compteMarketPlace $compteMarketPlace;
  375.         return $this;
  376.     }
  377.     public function getCompteMarketPlace(): ?CompteMarketPlace
  378.     {
  379.         return $this->compteMarketPlace;
  380.     }
  381.     public function setDateFiltreDebut(?DateTime $dateFiltreDebut): Export
  382.     {
  383.         $this->dateFiltreDebut $dateFiltreDebut;
  384.         return $this;
  385.     }
  386.     public function getDateFiltreDebut(): ?DateTime
  387.     {
  388.         return $this->dateFiltreDebut;
  389.     }
  390.     public function setDateFiltreFin(?DateTime $dateFiltreFin): Export
  391.     {
  392.         $this->dateFiltreFin $dateFiltreFin;
  393.         return $this;
  394.     }
  395.     public function getDateFiltreFin(): ?DateTime
  396.     {
  397.         return $this->dateFiltreFin;
  398.     }
  399.     public function isArchive(): ?bool
  400.     {
  401.         return $this->archive;
  402.     }
  403.     public function isArticlesComposes(): ?bool
  404.     {
  405.         return $this->articlesComposes;
  406.     }
  407.     public function isTelecharge(): ?bool
  408.     {
  409.         return $this->telecharge;
  410.     }
  411.     public function isEchec(): ?bool
  412.     {
  413.         return $this->echec;
  414.     }
  415.     public function isExecute(): ?bool
  416.     {
  417.         return $this->execute;
  418.     }
  419.     public function getEntiteExportCsv(): ?EntiteExportCsv
  420.     {
  421.         return $this->entiteExportCsv;
  422.     }
  423.     public function setEntiteExportCsv(?EntiteExportCsv $entiteExportCsv): self
  424.     {
  425.         $this->entiteExportCsv $entiteExportCsv;
  426.         return $this;
  427.     }
  428. }