src/Entity/MarketPlace/MarketPlace.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\MarketPlace;
  3. use App\Entity\Utilisateur\Utilisateur;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use App\Annotations\SecuredEntity;
  9. /**
  10.  * MarketPlace
  11.  *
  12.  * @ORM\Table("market_place__market_place")
  13.  * @ORM\Entity(repositoryClass="App\Repository\MarketPlace\MarketPlaceRepository")
  14.  * @SecuredEntity (name="MarketPlace", group="MARKETPLACE")
  15.  */
  16. class MarketPlace
  17. {
  18.     /**
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.     
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur")
  27.      * @ORM\JoinColumn(nullable=true)
  28.      */
  29.     private $utilisateur;
  30.     /**
  31.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  32.      */
  33.     private $libelle;
  34.     /**
  35.      * @ORM\Column(name="date", type="datetime", nullable=true)
  36.      */
  37.     private $date;
  38.     /**
  39.      * @ORM\Column(name="statut", type="boolean", nullable=true)
  40.      */
  41.     private $statut;
  42.     /**
  43.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  44.      */
  45.     private $dateSuppression;
  46.     /**
  47.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  48.      */
  49.     private $dateMaj;
  50.     /**
  51.      * @ORM\Column(name="code_comptable", type="string", length=255, nullable=true)
  52.      */
  53.     private $codeComptable;
  54.     public function __construct()
  55.     {
  56.         $this->date = new Datetime();
  57.         $this->statut true;
  58.     }
  59.     public function getId(): int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function setLibelle(?string $libelle): MarketPlace
  64.     {
  65.         $this->libelle $libelle;
  66.         return $this;
  67.     }
  68.     public function getLibelle(): ?string
  69.     {
  70.         return $this->libelle;
  71.     }
  72.     public function setDate(?DateTime $date): MarketPlace
  73.     {
  74.         $this->date $date;
  75.         return $this;
  76.     }
  77.     public function getDate(): ?DateTime
  78.     {
  79.         return $this->date;
  80.     }
  81.     public function setStatut(?bool $statut): MarketPlace
  82.     {
  83.         $this->statut $statut;
  84.         return $this;
  85.     }
  86.     public function getStatut(): ?bool
  87.     {
  88.         return $this->statut;
  89.     }
  90.     public function setDateSuppression(?DateTime $dateSuppression): MarketPlace
  91.     {
  92.         $this->dateSuppression $dateSuppression;
  93.         return $this;
  94.     }
  95.     public function getDateSuppression(): ?DateTime
  96.     {
  97.         return $this->dateSuppression;
  98.     }
  99.     public function setDateMaj(?DateTime $dateMaj): MarketPlace
  100.     {
  101.         $this->dateMaj $dateMaj;
  102.         return $this;
  103.     }
  104.     public function getDateMaj(): ?DateTime
  105.     {
  106.         return $this->dateMaj;
  107.     }
  108.     
  109.     public function __toString() {
  110.         return $this->libelle;
  111.     }
  112.     public function setCodeComptable(?string $codeComptable): MarketPlace
  113.     {
  114.         $this->codeComptable $codeComptable;
  115.         return $this;
  116.     }
  117.     public function getCodeComptable(): ?string
  118.     {
  119.         return $this->codeComptable;
  120.     }
  121.     public function setUtilisateur(?Utilisateur $utilisateur): MarketPlace
  122.     {
  123.         $this->utilisateur $utilisateur;
  124.         return $this;
  125.     }
  126.     public function getUtilisateur(): ?Utilisateur
  127.     {
  128.         return $this->utilisateur;
  129.     }
  130. }