src/Entity/BFMailFestival.php line 14

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\BFMailFestivalRepository")
  8.  * @Vich\Uploadable
  9.  */
  10. class BFMailFestival
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\BFFestival", inversedBy="mails")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $festival;
  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.      * @var string
  34.      */
  35.     private $attachmentfile;
  36.     
  37.     /**
  38.      * @Vich\UploadableField(mapping="mail_attachment", fileNameProperty="attachmentfile")
  39.      * @var File
  40.      */
  41.     private $attachmentFile1;
  42.     /**
  43.      * @ORM\Column(type="datetime")
  44.      */
  45.     private $senddate;
  46.     /**
  47.      * @ORM\Column(type="integer")
  48.      */
  49.     private $subscribercount;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $attachmentfiletitle;
  54.     /**
  55.      * @ORM\Column(type="boolean")
  56.      */
  57.     private $isadmin;
  58.     public function getId(): ?int
  59.     {
  60.         return $this->id;
  61.     }
  62.     public function getFestival(): ?BFFestival
  63.     {
  64.         return $this->festival;
  65.     }
  66.     public function setFestival(?BFFestival $festival): self
  67.     {
  68.         $this->festival $festival;
  69.         return $this;
  70.     }
  71.     public function getSubject(): ?string
  72.     {
  73.         return $this->subject;
  74.     }
  75.     public function setSubject(string $subject): self
  76.     {
  77.         $this->subject $subject;
  78.         return $this;
  79.     }
  80.     public function getText(): ?string
  81.     {
  82.         return $this->text;
  83.     }
  84.     public function setText(string $text): self
  85.     {
  86.         $this->text nl2br($text);
  87.         return $this;
  88.     }
  89.     
  90.     public function setAttachmentFile1(File $attachment null)
  91.     {
  92.         $this->attachmentFile1 $attachment;
  93.     }
  94.     public function getAttachmentFile1()
  95.     {
  96.         return $this->attachmentFile1;
  97.     }
  98.     
  99.     public function getAttachmentfile(): ?string
  100.     {
  101.         return $this->attachmentfile;
  102.     }
  103.     public function setAttachmentfile(?string $attachmentfile): self
  104.     {
  105.         $this->attachmentfile $attachmentfile;
  106.         return $this;
  107.     }
  108.     public function getSenddate(): ?\DateTimeInterface
  109.     {
  110.         return $this->senddate;
  111.     }
  112.     public function setSenddate(\DateTimeInterface $senddate): self
  113.     {
  114.         $this->senddate $senddate;
  115.         return $this;
  116.     }
  117.     public function getSubscribercount(): ?int
  118.     {
  119.         return $this->subscribercount;
  120.     }
  121.     public function setSubscribercount(int $subscribercount): self
  122.     {
  123.         $this->subscribercount $subscribercount;
  124.         return $this;
  125.     }
  126.     public function getAttachmentfiletitle(): ?string
  127.     {
  128.         return $this->attachmentfiletitle;
  129.     }
  130.     public function setAttachmentfiletitle(?string $attachmentfiletitle): self
  131.     {
  132.         $this->attachmentfiletitle $attachmentfiletitle;
  133.         return $this;
  134.     }
  135.     public function getIsadmin(): ?bool
  136.     {
  137.         return $this->isadmin;
  138.     }
  139.     public function setIsadmin(bool $isadmin): self
  140.     {
  141.         $this->isadmin $isadmin;
  142.         return $this;
  143.     }
  144. }