src/Entity/Export/Export_Entity_exportable.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Export;
  3. use App\Entity\Utilisateur\TypeUtilisateur;
  4. use App\Entity\Utilisateur\Utilisateur;
  5. use DateTime;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. /**
  12.  * Export_Entity_exportable
  13.  *
  14.  * @ORM\Table()
  15.  * @Gedmo\SoftDeleteable(fieldName="dateSupp",timeAware=false) 
  16.  * @ORM\Entity
  17.  */
  18. class Export_Entity_exportable
  19. {
  20.     /**
  21.      * @ORM\Column(name="id", type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @ORM\Column(name="name", type="string", length=255)
  28.      */
  29.     private $name;
  30.     
  31.     /**
  32.      * @ORM\Column(name="namespace", type="string", length=255)
  33.      */
  34.     private $namespace;
  35.     
  36.     /**
  37.      * @ORM\Column(name="dateCreation", type="datetime")
  38.      */
  39.     private $dateCreation;
  40.     /**
  41.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  42.      */
  43.     private $dateMaj;
  44.     /**
  45.      * @ORM\Column(name="dateSupp", type="datetime", nullable=true)
  46.      */
  47.     private $dateSupp;
  48.     
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\TypeUtilisateur", inversedBy="entityExportable")
  51.      * @ORM\JoinColumn(nullable=true)
  52.      */
  53.     private $typeUtilisateur;
  54.     
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="entityExportable")
  57.      * @ORM\JoinColumn(nullable=true)
  58.      */
  59.     private $utilisateur;
  60.     
  61.     /**
  62.      * @ORM\OneToMany(targetEntity="App\Entity\Export\Export_champs_exportables", mappedBy="entityExportable")
  63.      */
  64.     private $champsExportables;
  65.     /**
  66.      * toString
  67.      * @return string
  68.      */
  69.     public function __toString()
  70.     {
  71.         return $this->getName();
  72.     }
  73.     public function getId(): int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function setName(string $name): Export_Entity_exportable
  78.     {
  79.         $this->name $name;
  80.         return $this;
  81.     }
  82.     public function getName(): string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function __construct()
  87.     {
  88.         $this->champsExportables = new ArrayCollection();
  89.     }
  90.     public function setDateCreation(DateTime $dateCreation): Export_Entity_exportable
  91.     {
  92.         $this->dateCreation $dateCreation;
  93.         return $this;
  94.     }
  95.     public function getDateCreation(): DateTime
  96.     {
  97.         return $this->dateCreation;
  98.     }
  99.     public function setDateMaj(?DateTime $dateMaj): Export_Entity_exportable
  100.     {
  101.         $this->dateMaj $dateMaj;
  102.         return $this;
  103.     }
  104.     public function getDateMaj(): ?DateTime
  105.     {
  106.         return $this->dateMaj;
  107.     }
  108.     public function setDateSupp(?DateTime $dateSupp): Export_Entity_exportable
  109.     {
  110.         $this->dateSupp $dateSupp;
  111.         return $this;
  112.     }
  113.     public function getDateSupp(): ?DateTime
  114.     {
  115.         return $this->dateSupp;
  116.     }
  117.     public function setTypeUtilisateur(?TypeUtilisateur $typeUtilisateur): Export_Entity_exportable
  118.     {
  119.         $this->typeUtilisateur $typeUtilisateur;
  120.         return $this;
  121.     }
  122.     public function getTypeUtilisateur(): ?TypeUtilisateur
  123.     {
  124.         return $this->typeUtilisateur;
  125.     }
  126.     public function setUtilisateur(?Utilisateur $utilisateur): Export_Entity_exportable
  127.     {
  128.         $this->utilisateur $utilisateur;
  129.         return $this;
  130.     }
  131.     public function getUtilisateur(): ?Utilisateur
  132.     {
  133.         return $this->utilisateur;
  134.     }
  135.     public function addChampsExportable(Export_Entity_exportable $champsExportables): Export_Entity_exportable
  136.     {
  137.         $this->champsExportables[] = $champsExportables;
  138.         return $this;
  139.     }
  140.     public function removeChampsExportable(Export_Entity_exportable $champsExportables)
  141.     {
  142.         $this->champsExportables->removeElement($champsExportables);
  143.     }
  144.     public function getChampsExportables(): Collection
  145.     {
  146.         return $this->champsExportables;
  147.     }
  148.     public function setNamespace(string $namespace): Export_Entity_exportable
  149.     {
  150.         $this->namespace $namespace;
  151.         return $this;
  152.     }
  153.     public function getNamespace(): string
  154.     {
  155.         return $this->namespace;
  156.     }
  157.  
  158. }