src/Entity/BFMailTournoi.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\BFMailTournoiRepository")
  8.   * @Vich\Uploadable
  9.  */
  10. class BFMailTournoi
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\BFTournoi", inversedBy="mails")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $tournoi;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $subject;
  27.     /**
  28.      * @ORM\Column(type="text")
  29.      */
  30.     private $text;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $attachmentfile;
  35.     /**
  36.      * @Vich\UploadableField(mapping="mail_attachment", fileNameProperty="attachmentfile")
  37.      * @var File
  38.      */
  39.     private $attachmentFile1;
  40.     
  41.     /**
  42.      * @ORM\Column(type="datetime")
  43.      */
  44.     private $senddate;
  45.     /**
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private $receivercount;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $attachmentfiletitle;
  53.     /**
  54.      * @ORM\Column(type="boolean")
  55.      */
  56.     private $isadmin;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getTournoi(): ?BFTournoi
  62.     {
  63.         return $this->tournoi;
  64.     }
  65.     public function setTournoi(?BFTournoi $tournoi): self
  66.     {
  67.         $this->tournoi $tournoi;
  68.         return $this;
  69.     }
  70.     public function getSubject(): ?string
  71.     {
  72.         return $this->subject;
  73.     }
  74.     public function setSubject(string $subject): self
  75.     {
  76.         $this->subject $subject;
  77.         return $this;
  78.     }
  79.     public function getText(): ?string
  80.     {
  81.         return $this->text;
  82.     }
  83.     public function setText(string $text): self
  84.     {
  85.         $this->text $text;
  86.         return $this;
  87.     }
  88.     public function setAttachmentFile1(File $attachment null)
  89.     {
  90.         $this->attachmentFile1 $attachment;
  91.     }
  92.     public function getAttachmentFile1()
  93.     {
  94.         return $this->attachmentFile1;
  95.     }
  96.     public function getAttachmentfile(): ?string
  97.     {
  98.         return $this->attachmentfile;
  99.     }
  100.     public function setAttachmentfile(?string $attachmentfile): self
  101.     {
  102.         $this->attachmentfile $attachmentfile;
  103.         return $this;
  104.     }
  105.     public function getSenddate(): ?\DateTimeInterface
  106.     {
  107.         return $this->senddate;
  108.     }
  109.     public function setSenddate(\DateTimeInterface $senddate): self
  110.     {
  111.         $this->senddate $senddate;
  112.         return $this;
  113.     }
  114.     public function getReceivercount(): ?int
  115.     {
  116.         return $this->receivercount;
  117.     }
  118.     public function setReceivercount(int $receivercount): self
  119.     {
  120.         $this->receivercount $receivercount;
  121.         return $this;
  122.     }
  123.     public function getAttachmentfiletitle(): ?string
  124.     {
  125.         return $this->attachmentfiletitle;
  126.     }
  127.     public function setAttachmentfiletitle(?string $attachmentfiletitle): self
  128.     {
  129.         $this->attachmentfiletitle $attachmentfiletitle;
  130.         return $this;
  131.     }
  132.     public function getIsadmin(): ?bool
  133.     {
  134.         return $this->isadmin;
  135.     }
  136.     public function setIsadmin(bool $isadmin): self
  137.     {
  138.         $this->isadmin $isadmin;
  139.         return $this;
  140.     }
  141. }