Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/CodePromoSecu.php line 99

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CodePromoSecuRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JsonSerializable;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CodePromoSecuRepository::class)
  8.  */
  9. class CodePromoSecu implements JsonSerializable
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $code;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $description;
  25.     /**
  26.      * @ORM\Column(type="float")
  27.      */
  28.     private $prix;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */
  32.     private $statut;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Secteur::class)
  35.      */
  36.     private $secteur;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getCode(): ?string
  42.     {
  43.         return $this->code;
  44.     }
  45.     public function setCode(string $code): self
  46.     {
  47.         $this->code $code;
  48.         return $this;
  49.     }
  50.     public function getDescription(): ?string
  51.     {
  52.         return $this->description;
  53.     }
  54.     public function setDescription(?string $description): self
  55.     {
  56.         $this->description $description;
  57.         return $this;
  58.     }
  59.     public function getPrix(): ?float
  60.     {
  61.         return $this->prix;
  62.     }
  63.     public function setPrix(float $prix): self
  64.     {
  65.         $this->prix $prix;
  66.         return $this;
  67.     }
  68.     public function getStatut(): ?int
  69.     {
  70.         return $this->statut;
  71.     }
  72.     public function setStatut(int $statut): self
  73.     {
  74.         $this->statut $statut;
  75.         return $this;
  76.     }
  77.     public function jsonSerialize()
  78.     {
  79.         $vars get_object_vars($this);
  80.         return $vars;
  81.     }
  82.     public function getSecteur(): ?Secteur
  83.     {
  84.         return $this->secteur;
  85.     }
  86.     public function setSecteur(?Secteur $secteur): self
  87.     {
  88.         $this->secteur $secteur;
  89.         return $this;
  90.     }
  91. }