<?php
namespace App\Entity;
use App\Repository\SettingRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SettingRepository::class)]
class Setting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $expediteur = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $mailFr = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $MailUk = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $mailDe = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $mailEs = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $mailIt = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $note = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $noteSystem = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $noteEchange = null;
public function getId(): ?int
{
return $this->id;
}
public function getExpediteur(): ?string
{
return $this->expediteur;
}
public function setExpediteur(?string $expediteur): self
{
$this->expediteur = $expediteur;
return $this;
}
public function getMailFr(): ?string
{
return $this->mailFr;
}
public function setMailFr(?string $mailFr): self
{
$this->mailFr = $mailFr;
return $this;
}
public function getMailUk(): ?string
{
return $this->MailUk;
}
public function setMailUk(?string $MailUk): self
{
$this->MailUk = $MailUk;
return $this;
}
public function getMailDe(): ?string
{
return $this->mailDe;
}
public function setMailDe(?string $mailDe): self
{
$this->mailDe = $mailDe;
return $this;
}
public function getMailEs(): ?string
{
return $this->mailEs;
}
public function setMailEs(?string $mailEs): self
{
$this->mailEs = $mailEs;
return $this;
}
public function getMailIt(): ?string
{
return $this->mailIt;
}
public function setMailIt(?string $mailIt): self
{
$this->mailIt = $mailIt;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): self
{
$this->note = $note;
return $this;
}
public function getNoteSystem(): ?string
{
return $this->noteSystem;
}
public function setNoteSystem(?string $noteSystem): self
{
$this->noteSystem = $noteSystem;
return $this;
}
public function getNoteEchange(): ?string
{
return $this->noteEchange;
}
public function setNoteEchange(?string $noteEchange): self
{
$this->noteEchange = $noteEchange;
return $this;
}
#[ORM\OneToMany(mappedBy: 'setting', targetEntity: SettingNote::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
private $settingNotes;
public function __construct()
{
$this->settingNotes = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* @return \Doctrine\Common\Collections\Collection<int, SettingNote>
*/
public function getSettingNotes(): \Doctrine\Common\Collections\Collection
{
return $this->settingNotes;
}
public function addSettingNote(SettingNote $settingNote): self
{
if (!$this->settingNotes->contains($settingNote)) {
$this->settingNotes->add($settingNote);
$settingNote->setSetting($this);
}
return $this;
}
public function removeSettingNote(SettingNote $settingNote): self
{
if ($this->settingNotes->removeElement($settingNote)) {
// set the owning side to null (unless already changed)
if ($settingNote->getSetting() === $this) {
$settingNote->setSetting(null);
}
}
return $this;
}
}