<?phpnamespace App\Entity\Main;use App\Repository\SuggestedOfferRepository;use Doctrine\ORM\Mapping as ORM;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;/** * @ORM\Entity(repositoryClass=SuggestedOfferRepository::class) */class SuggestedOffer{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="array") */ private $cart_condition = []; /** * @ORM\Column(type="text") */ private $message; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\ManyToOne(targetEntity=App\Entity\Main\Formule::class, fetch="EAGER") */ private $formule_test; /** * @ORM\ManyToOne(targetEntity=App\Entity\Main\Forfait::class, fetch="EAGER") */ private $forfait_cible; /** * @ORM\ManyToMany(targetEntity="App\Entity\Main\Forfait") */ private $forfait_included; /** * @ORM\Column(type="string", length=255) */ private $text_button; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $lien_externe; public function __construct() { $this->forfait_included = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getCartCondition(): ?array { return $this->cart_condition; } public function setCartCondition(array $cart_condition): self { $this->cart_condition = $cart_condition; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getFormuleTest(): ?Formule { return $this->formule_test; } public function setFormuleTest(?Formule $formule_test): self { $this->formule_test = $formule_test; return $this; } public function getForfaitCible(): ?Forfait { return $this->forfait_cible; } public function setForfaitCible(Forfait $forfait_cible): self { $this->forfait_cible = $forfait_cible; return $this; } /** * @return Collection|Forfait[] */ public function getForfaitIncluded(): Collection { return $this->forfait_included; } public function addForfaitIncluded(Forfait $forfaitincluded): self { if (!$this->forfait_included->contains($forfaitincluded)) { $this->forfait_included[] = $forfaitincluded; } return $this; } public function removeForfaitIncluded(Forfait $forfaitincluded): self { if ($this->forfait_included->contains($forfaitincluded)) { $this->forfait_included->removeElement($forfaitincluded); } return $this; } public function getTextButton(): ?string { return $this->text_button; } public function setTextButton(string $text_button): self { $this->text_button = $text_button; return $this; } public function getLienExterne(): ?string { return $this->lien_externe; } public function setLienExterne(string $lien_externe): self { $this->lien_externe = $lien_externe; return $this; }}