src/Entity/Mailing.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MailingRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassMailingRepository::class)]
  8. class Mailing
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityTypeMail::class, inversedBy'mailings')]
  15.     private $typemail;
  16.     #[ORM\Column(type'datetime'nullabletrue)]
  17.     private $date;
  18.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'mailings')]
  19.     private $atelier;
  20.     #[ORM\ManyToOne(targetEntityFournisseur::class, inversedBy'mailings')]
  21.     private $fournisseur;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $langue;
  24.     #[ORM\Column(type'text'nullabletrue)]
  25.     private $var1;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $var2;
  28.     #[ORM\Column(type'text'nullabletrue)]
  29.     private $var3;
  30.     #[ORM\Column(type'text'nullabletrue)]
  31.     private $var4;
  32.     #[ORM\Column(type'text'nullabletrue)]
  33.     private $var5;
  34.     #[ORM\Column(type'text'nullabletrue)]
  35.     private $var6;
  36.     #[ORM\Column(type'boolean'nullabletrue)]
  37.     private $envoye;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $expediteur_mail;
  40.     #[ORM\Column(type'text'nullabletrue)]
  41.     private $content_fr;
  42.     #[ORM\Column(type'text'nullabletrue)]
  43.     private $content_en;
  44.     #[ORM\Column(type'text'nullabletrue)]
  45.     private $sujet_fr;
  46.     #[ORM\Column(type'text'nullabletrue)]
  47.     private $sujet_en;
  48.     #[ORM\Column(type'text'nullabletrue)]
  49.     private $destinataires_fr;
  50.     #[ORM\Column(type'text'nullabletrue)]
  51.     private $destinataires_en;
  52.     #[ORM\Column(type'text'nullabletrue)]
  53.     private $destinataires_copie_fr;
  54.     #[ORM\Column(type'text'nullabletrue)]
  55.     private $destinataires_copie_en;
  56.     #[ORM\Column(type'datetime'nullabletrue)]
  57.     private $date_envoi;
  58.     #[ORM\Column(type'text'nullabletrue)]
  59.     private $var2_en;
  60.     #[ORM\ManyToMany(targetEntityFournisseur::class, inversedBy'mailings_cotraitant')]
  61.     private $cotraitants;
  62.     #[ORM\Column(type'boolean'nullabletrue)]
  63.     private $cotraitance;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $piece_jointe null;
  66.     public function __construct()
  67.     {
  68.         $this->cotraitants = new ArrayCollection();
  69.     }
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getTypemail(): ?TypeMail
  75.     {
  76.         return $this->typemail;
  77.     }
  78.     public function setTypemail(?TypeMail $typemail): self
  79.     {
  80.         $this->typemail $typemail;
  81.         return $this;
  82.     }
  83.     public function getDate(): ?\DateTimeInterface
  84.     {
  85.         return $this->date;
  86.     }
  87.     public function setDate(?\DateTimeInterface $date): self
  88.     {
  89.         $this->date $date;
  90.         return $this;
  91.     }
  92.     public function getAtelier(): ?Atelier
  93.     {
  94.         return $this->atelier;
  95.     }
  96.     public function setAtelier(?Atelier $atelier): self
  97.     {
  98.         $this->atelier $atelier;
  99.         return $this;
  100.     }
  101.     public function getFournisseur(): ?Fournisseur
  102.     {
  103.         return $this->fournisseur;
  104.     }
  105.     public function setFournisseur(?Fournisseur $fournisseur): self
  106.     {
  107.         $this->fournisseur $fournisseur;
  108.         return $this;
  109.     }
  110.     public function getLangue(): ?string
  111.     {
  112.         return $this->langue;
  113.     }
  114.     public function setLangue(?string $langue): self
  115.     {
  116.         $this->langue $langue;
  117.         return $this;
  118.     }
  119.     public function getVar1(): ?string
  120.     {
  121.         return $this->var1;
  122.     }
  123.     public function setVar1(?string $var1): self
  124.     {
  125.         $this->var1 $var1;
  126.         return $this;
  127.     }
  128.     public function getVar2(): ?string
  129.     {
  130.         return $this->var2;
  131.     }
  132.     public function setVar2(?string $var2): self
  133.     {
  134.         $this->var2 $var2;
  135.         return $this;
  136.     }
  137.     public function getVar3(): ?string
  138.     {
  139.         return $this->var3;
  140.     }
  141.     public function setVar3(?string $var3): self
  142.     {
  143.         $this->var3 $var3;
  144.         return $this;
  145.     }
  146.     public function getVar4(): ?string
  147.     {
  148.         return $this->var4;
  149.     }
  150.     public function setVar4(?string $var4): self
  151.     {
  152.         $this->var4 $var4;
  153.         return $this;
  154.     }
  155.     public function getVar5(): ?string
  156.     {
  157.         return $this->var5;
  158.     }
  159.     public function setVar5(?string $var5): self
  160.     {
  161.         $this->var5 $var5;
  162.         return $this;
  163.     }
  164.     public function getVar6(): ?string
  165.     {
  166.         return $this->var6;
  167.     }
  168.     public function setVar6(?string $var6): self
  169.     {
  170.         $this->var6 $var6;
  171.         return $this;
  172.     }
  173.     public function getEnvoye(): ?bool
  174.     {
  175.         return $this->envoye;
  176.     }
  177.     public function setEnvoye(?bool $envoye): self
  178.     {
  179.         $this->envoye $envoye;
  180.         return $this;
  181.     }
  182.     public function getExpediteurMail(): ?string
  183.     {
  184.         return $this->expediteur_mail;
  185.     }
  186.     public function setExpediteurMail(?string $expediteur_mail): self
  187.     {
  188.         $this->expediteur_mail $expediteur_mail;
  189.         return $this;
  190.     }
  191.     public function getContentFr(): ?string
  192.     {
  193.         return $this->content_fr;
  194.     }
  195.     public function setContentFr(?string $content_fr): self
  196.     {
  197.         $this->content_fr $content_fr;
  198.         return $this;
  199.     }
  200.     public function getContentEn(): ?string
  201.     {
  202.         return $this->content_en;
  203.     }
  204.     public function setContentEn(?string $content_en): self
  205.     {
  206.         $this->content_en $content_en;
  207.         return $this;
  208.     }
  209.     public function getSujetFr(): ?string
  210.     {
  211.         return $this->sujet_fr;
  212.     }
  213.     public function setSujetFr(?string $sujet_fr): self
  214.     {
  215.         $this->sujet_fr $sujet_fr;
  216.         return $this;
  217.     }
  218.     public function getSujetEn(): ?string
  219.     {
  220.         return $this->sujet_en;
  221.     }
  222.     public function setSujetEn(?string $sujet_en): self
  223.     {
  224.         $this->sujet_en $sujet_en;
  225.         return $this;
  226.     }
  227.     public function getDestinatairesFr(): ?string
  228.     {
  229.         return $this->destinataires_fr;
  230.     }
  231.     public function setDestinatairesFr(?string $destinataires_fr): self
  232.     {
  233.         $this->destinataires_fr $destinataires_fr;
  234.         return $this;
  235.     }
  236.     public function getDestinatairesEn(): ?string
  237.     {
  238.         return $this->destinataires_en;
  239.     }
  240.     public function setDestinatairesEn(?string $destinataires_en): self
  241.     {
  242.         $this->destinataires_en $destinataires_en;
  243.         return $this;
  244.     }
  245.     public function getDestinatairesCopieFr(): ?string
  246.     {
  247.         return $this->destinataires_copie_fr;
  248.     }
  249.     public function setDestinatairesCopieFr(?string $destinataires_copie_fr): self
  250.     {
  251.         $this->destinataires_copie_fr $destinataires_copie_fr;
  252.         return $this;
  253.     }
  254.     public function getDestinatairesCopieEn(): ?string
  255.     {
  256.         return $this->destinataires_copie_en;
  257.     }
  258.     public function setDestinatairesCopieEn(?string $destinataires_copie_en): self
  259.     {
  260.         $this->destinataires_copie_en $destinataires_copie_en;
  261.         return $this;
  262.     }
  263.     public function getDateEnvoi(): ?\DateTimeInterface
  264.     {
  265.         return $this->date_envoi;
  266.     }
  267.     public function setDateEnvoi(?\DateTimeInterface $date_envoi): self
  268.     {
  269.         $this->date_envoi $date_envoi;
  270.         return $this;
  271.     }
  272.     public function getVar2En(): ?string
  273.     {
  274.         return $this->var2_en;
  275.     }
  276.     public function setVar2En(?string $var2_en): self
  277.     {
  278.         $this->var2_en $var2_en;
  279.         return $this;
  280.     }
  281.     /**
  282.      * @return Collection|Fournisseur[]
  283.      */
  284.     public function getCotraitants(): Collection
  285.     {
  286.         return $this->cotraitants;
  287.     }
  288.     public function addCotraitant(Fournisseur $cotraitant): self
  289.     {
  290.         if (!$this->cotraitants->contains($cotraitant)) {
  291.             $this->cotraitants[] = $cotraitant;
  292.         }
  293.         return $this;
  294.     }
  295.     public function removeCotraitant(Fournisseur $cotraitant): self
  296.     {
  297.         $this->cotraitants->removeElement($cotraitant);
  298.         return $this;
  299.     }
  300.     public function getCotraitance(): ?bool
  301.     {
  302.         return $this->cotraitance;
  303.     }
  304.     public function setCotraitance(?bool $cotraitance): self
  305.     {
  306.         $this->cotraitance $cotraitance;
  307.         return $this;
  308.     }
  309.     public function getPieceJointe(): ?string
  310.     {
  311.         return $this->piece_jointe;
  312.     }
  313.     public function setPieceJointe(?string $piece_jointe): static
  314.     {
  315.         $this->piece_jointe $piece_jointe;
  316.         return $this;
  317.     }
  318. }