src/Entity/Main/SuggestedOffer.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use App\Repository\SuggestedOfferRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SuggestedOfferRepository::class)
  9.  */
  10. class SuggestedOffer
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="array")
  20.      */
  21.     private $cart_condition = [];
  22.     /**
  23.      * @ORM\Column(type="text")
  24.      */
  25.     private $message;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $title;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=App\Entity\Main\Formule::class, fetch="EAGER")
  32.      */
  33.     private $formule_test;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=App\Entity\Main\Forfait::class, fetch="EAGER")
  36.      */
  37.     private $forfait_cible;
  38.     /**
  39.      * @ORM\ManyToMany(targetEntity="App\Entity\Main\Forfait")
  40.      */
  41.     private $forfait_included;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $text_button;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $lien_externe;
  50.     public function __construct()
  51.     {
  52.         $this->forfait_included = new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getCartCondition(): ?array
  59.     {
  60.         return $this->cart_condition;
  61.     }
  62.     public function setCartCondition(array $cart_condition): self
  63.     {
  64.         $this->cart_condition $cart_condition;
  65.         return $this;
  66.     }
  67.     public function getMessage(): ?string
  68.     {
  69.         return $this->message;
  70.     }
  71.     public function setMessage(string $message): self
  72.     {
  73.         $this->message $message;
  74.         return $this;
  75.     }
  76.     public function getTitle(): ?string
  77.     {
  78.         return $this->title;
  79.     }
  80.     public function setTitle(string $title): self
  81.     {
  82.         $this->title $title;
  83.         return $this;
  84.     }
  85.     public function getFormuleTest(): ?Formule
  86.     {
  87.         return $this->formule_test;
  88.     }
  89.     public function setFormuleTest(?Formule $formule_test): self
  90.     {
  91.         $this->formule_test $formule_test;
  92.         return $this;
  93.     }
  94.     public function getForfaitCible(): ?Forfait
  95.     {
  96.         return $this->forfait_cible;
  97.     }
  98.     public function setForfaitCible(Forfait $forfait_cible): self
  99.     {
  100.         $this->forfait_cible $forfait_cible;
  101.         return $this;
  102.     }
  103.     /**
  104.      * @return Collection|Forfait[]
  105.      */
  106.     public function getForfaitIncluded(): Collection
  107.     {
  108.         return $this->forfait_included;
  109.     }
  110.     public function addForfaitIncluded(Forfait $forfaitincluded): self
  111.     {
  112.         if (!$this->forfait_included->contains($forfaitincluded)) {
  113.             $this->forfait_included[] = $forfaitincluded;
  114.         }
  115.         return $this;
  116.     }
  117.     public function removeForfaitIncluded(Forfait $forfaitincluded): self
  118.     {
  119.         if ($this->forfait_included->contains($forfaitincluded)) {
  120.             $this->forfait_included->removeElement($forfaitincluded);
  121.         }
  122.         return $this;
  123.     }
  124.     public function getTextButton(): ?string
  125.     {
  126.         return $this->text_button;
  127.     }
  128.     public function setTextButton(string $text_button): self
  129.     {
  130.         $this->text_button $text_button;
  131.         return $this;
  132.     }
  133.     public function getLienExterne(): ?string
  134.     {
  135.         return $this->lien_externe;
  136.     }
  137.     public function setLienExterne(string $lien_externe): self
  138.     {
  139.         $this->lien_externe $lien_externe;
  140.         return $this;
  141.     }
  142. }