src/Entity/MarketPlace/Profil.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MarketPlace;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Doctrine\ORM\Mapping\Index;
  8. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  9. use App\Annotations\SecuredEntity;
  10. /**
  11.  * Profil
  12.  *
  13.  * @ORM\Table("market_place__profil")
  14.  * @ORM\Entity(repositoryClass="App\Repository\MarketPlace\ProfilRepository")
  15.  * @SecuredEntity (name="Profil", group="MARKETPLACE")
  16.  */
  17. class Profil
  18. {
  19.     /**
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  27.      */
  28.     private $libelle;
  29.     /**
  30.      * @ORM\Column(name="date", type="datetime", nullable=true)
  31.      */
  32.     private $date;
  33.     
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\TypeProduit", cascade={"persist"})
  36.      * @ORM\OrderBy({"libelle" = "ASC"})
  37.      */
  38.     private $typeProduit;
  39.     
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\TypeProduit", cascade={"persist"})
  42.      * @ORM\OrderBy({"libelle" = "ASC"})
  43.      */
  44.     private $typeProduitEnfant;
  45.     
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\MarketPlace", cascade={"persist"})
  48.      */
  49.     private $marketPlace;
  50.     public function __construct()
  51.     {
  52.         $this->date = new Datetime();
  53.     }
  54.     public function getId(): int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function setLibelle(?string $libelle): Profil
  59.     {
  60.         $this->libelle $libelle;
  61.         return $this;
  62.     }
  63.     public function getLibelle(): ?string
  64.     {
  65.         return $this->libelle;
  66.     }
  67.     public function setDate(?DateTime $date): Profil
  68.     {
  69.         $this->date $date;
  70.         return $this;
  71.     }
  72.     public function getDate(): ?DateTime
  73.     {
  74.         return $this->date;
  75.     }
  76.     public function setMarketPlace(?MarketPlace $marketPlace): Profil
  77.     {
  78.         $this->marketPlace $marketPlace;
  79.         return $this;
  80.     }
  81.     public function getMarketPlace(): ?MarketPlace
  82.     {
  83.         return $this->marketPlace;
  84.     }
  85.     public function setTypeProduit(?TypeProduit $typeProduit): Profil
  86.     {
  87.         $this->typeProduit $typeProduit;
  88.         return $this;
  89.     }
  90.     public function getTypeProduit(): ?TypeProduit
  91.     {
  92.         return $this->typeProduit;
  93.     }
  94.     public function setTypeProduitEnfant(?TypeProduit $typeProduitEnfant): Profil
  95.     {
  96.         $this->typeProduitEnfant $typeProduitEnfant;
  97.         return $this;
  98.     }
  99.     public function getTypeProduitEnfant(): ?TypeProduit
  100.     {
  101.         return $this->typeProduitEnfant;
  102.     }
  103. }