src/Entity/Offre.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Offre
  6.  *
  7.  * @ORM\Table(name="offre")
  8.  * @ORM\Entity(repositoryClass="App\Repository\OffreRepository")*/
  9. class Offre
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Column(name="id", type="integer", nullable=false)
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="IDENTITY")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      *
  22.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  23.      */
  24.     private $name;
  25.     /**
  26.      * @var int
  27.      *
  28.      * @ORM\Column(name="duration", type="integer", nullable=false)
  29.      */
  30.     private $duration;
  31.     /**
  32.      * @var datetime_immutable
  33.      *
  34.      * @ORM\Column(name="created_at", type="datetime_immutable", nullable=false)
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="statut", type="string", length=100, nullable=false)
  41.      */
  42.     private $statut;
  43.     /**
  44.      * @var \DateTime|null
  45.      *
  46.      * @ORM\Column(name="edited_at", type="datetime", nullable=true)
  47.      */
  48.     private $editedAt;
  49.     /**
  50.      * @var \DateTime|null
  51.      *
  52.      * @ORM\Column(name="date_validite", type="datetime", nullable=true)
  53.      */
  54.     private $dateValidite;
  55.     /**
  56.      * @var float
  57.      *
  58.      * @ORM\Column(name="price", type="float", precision=10, scale=0, nullable=false)
  59.      */
  60.     private $price;
  61.     /**
  62.      * @var string|null
  63.      *
  64.      * @ORM\Column(name="monnaie", type="string", length=10, nullable=true)
  65.      */
  66.     private $monnaie;
  67.     /**
  68.      * @var string|null
  69.      *
  70.      * @ORM\Column(name="short_description", type="text", length=0, nullable=true)
  71.      */
  72.     private $shortDescription;
  73.     /**
  74.      * @var string|null
  75.      *
  76.      * @ORM\Column(name="long_description", type="text", length=0, nullable=true)
  77.      */
  78.     private $longDescription;
  79.     /**
  80.      * @var string
  81.      *
  82.      * @ORM\Column(name="unity", type="string", length=20, nullable=false)
  83.      */
  84.     private $unity;
  85.     /**
  86.      * @var string|null
  87.      *
  88.      * @ORM\Column(name="plan_id", type="string", length=255, nullable=true)
  89.      */
  90.     private $planId;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(name="produit", type="string", length=45, nullable=false, options={"default"="basique"})
  95.      */
  96.     private $produit 'basique';
  97.     /**
  98.      * @var float|null
  99.      *
  100.      * @ORM\Column(name="price_gnf", type="float", precision=10, scale=0, nullable=true)
  101.      */
  102.     private $priceGnf;
  103.     /**
  104.      * @var string|null
  105.      *
  106.      * @ORM\Column(name="devise_gnf", type="string", length=10, nullable=true)
  107.      */
  108.     private $deviseGnf;
  109.     /**
  110.      * @var float|null
  111.      *
  112.      * @ORM\Column(name="price_ngn", type="float", precision=10, scale=0, nullable=true)
  113.      */
  114.     private $priceNgn;
  115.     /**
  116.      * @var string|null
  117.      *
  118.      * @ORM\Column(name="devise_ngn", type="string", length=10, nullable=true)
  119.      */
  120.     private $deviseNgn;
  121.     public function getId(): ?int
  122.     {
  123.         return $this->id;
  124.     }
  125.     public function getName(): ?string
  126.     {
  127.         return $this->name;
  128.     }
  129.     public function setName(string $name): self
  130.     {
  131.         $this->name $name;
  132.         return $this;
  133.     }
  134.     public function getDuration(): ?int
  135.     {
  136.         return $this->duration;
  137.     }
  138.     public function setDuration(int $duration): self
  139.     {
  140.         $this->duration $duration;
  141.         return $this;
  142.     }
  143.     public function getCreatedAt(): ?\DateTimeImmutable
  144.     {
  145.         return $this->createdAt;
  146.     }
  147.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  148.     {
  149.         $this->createdAt $createdAt;
  150.         return $this;
  151.     }
  152.     public function getStatut(): ?string
  153.     {
  154.         return $this->statut;
  155.     }
  156.     public function setStatut(string $statut): self
  157.     {
  158.         $this->statut $statut;
  159.         return $this;
  160.     }
  161.     public function getEditedAt(): ?\DateTimeInterface
  162.     {
  163.         return $this->editedAt;
  164.     }
  165.     public function setEditedAt(?\DateTimeInterface $editedAt): self
  166.     {
  167.         $this->editedAt $editedAt;
  168.         return $this;
  169.     }
  170.     public function getDateValidite(): ?\DateTimeInterface
  171.     {
  172.         return $this->dateValidite;
  173.     }
  174.     public function setDateValidite(?\DateTimeInterface $dateValidite): self
  175.     {
  176.         $this->dateValidite $dateValidite;
  177.         return $this;
  178.     }
  179.     public function getPrice(): ?float
  180.     {
  181.         return $this->price;
  182.     }
  183.     public function setPrice(float $price): self
  184.     {
  185.         $this->price $price;
  186.         return $this;
  187.     }
  188.     public function getMonnaie(): ?string
  189.     {
  190.         return $this->monnaie;
  191.     }
  192.     public function setMonnaie(?string $monnaie): self
  193.     {
  194.         $this->monnaie $monnaie;
  195.         return $this;
  196.     }
  197.     public function getShortDescription(): ?string
  198.     {
  199.         return $this->shortDescription;
  200.     }
  201.     public function setShortDescription(?string $shortDescription): self
  202.     {
  203.         $this->shortDescription $shortDescription;
  204.         return $this;
  205.     }
  206.     public function getLongDescription(): ?string
  207.     {
  208.         return $this->longDescription;
  209.     }
  210.     public function setLongDescription(?string $longDescription): self
  211.     {
  212.         $this->longDescription $longDescription;
  213.         return $this;
  214.     }
  215.     public function getUnity(): ?string
  216.     {
  217.         return $this->unity;
  218.     }
  219.     public function setUnity(string $unity): self
  220.     {
  221.         $this->unity $unity;
  222.         return $this;
  223.     }
  224.     public function getPlanId(): ?string
  225.     {
  226.         return $this->planId;
  227.     }
  228.     public function setPlanId(?string $planId): self
  229.     {
  230.         $this->planId $planId;
  231.         return $this;
  232.     }
  233.     public function getProduit(): ?string
  234.     {
  235.         return $this->produit;
  236.     }
  237.     public function setProduit(string $produit): self
  238.     {
  239.         $this->produit $produit;
  240.         return $this;
  241.     }
  242.     public function getPriceGnf(): ?float
  243.     {
  244.         return $this->priceGnf;
  245.     }
  246.     public function setPriceGnf(?float $priceGnf): self
  247.     {
  248.         $this->priceGnf $priceGnf;
  249.         return $this;
  250.     }
  251.     public function getDeviseGnf(): ?string
  252.     {
  253.         return $this->deviseGnf;
  254.     }
  255.     public function setDeviseGnf(?string $deviseGnf): self
  256.     {
  257.         $this->deviseGnf $deviseGnf;
  258.         return $this;
  259.     }
  260.     public function getPriceNgn(): ?float
  261.     {
  262.         return $this->priceNgn;
  263.     }
  264.     public function setPriceNgn(?float $priceNgn): self
  265.     {
  266.         $this->priceNgn $priceNgn;
  267.         return $this;
  268.     }
  269.     public function getDeviseNgn(): ?string
  270.     {
  271.         return $this->deviseNgn;
  272.     }
  273.     public function setDeviseNgn(?string $deviseNgn): self
  274.     {
  275.         $this->deviseNgn $deviseNgn;
  276.         return $this;
  277.     }
  278. }