<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\HttpFoundation\File\File;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFMailFestivalRepository")
* @Vich\Uploadable
*/
class BFMailFestival
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\BFFestival", inversedBy="mails")
* @ORM\JoinColumn(nullable=false)
*/
private $festival;
/**
* @ORM\Column(type="string", length=255)
*/
private $subject;
/**
* @ORM\Column(type="text")
*/
private $text;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @var string
*/
private $attachmentfile;
/**
* @Vich\UploadableField(mapping="mail_attachment", fileNameProperty="attachmentfile")
* @var File
*/
private $attachmentFile1;
/**
* @ORM\Column(type="datetime")
*/
private $senddate;
/**
* @ORM\Column(type="integer")
*/
private $subscribercount;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $attachmentfiletitle;
/**
* @ORM\Column(type="boolean")
*/
private $isadmin;
public function getId(): ?int
{
return $this->id;
}
public function getFestival(): ?BFFestival
{
return $this->festival;
}
public function setFestival(?BFFestival $festival): self
{
$this->festival = $festival;
return $this;
}
public function getSubject(): ?string
{
return $this->subject;
}
public function setSubject(string $subject): self
{
$this->subject = $subject;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(string $text): self
{
$this->text = nl2br($text);
return $this;
}
public function setAttachmentFile1(File $attachment = null)
{
$this->attachmentFile1 = $attachment;
}
public function getAttachmentFile1()
{
return $this->attachmentFile1;
}
public function getAttachmentfile(): ?string
{
return $this->attachmentfile;
}
public function setAttachmentfile(?string $attachmentfile): self
{
$this->attachmentfile = $attachmentfile;
return $this;
}
public function getSenddate(): ?\DateTimeInterface
{
return $this->senddate;
}
public function setSenddate(\DateTimeInterface $senddate): self
{
$this->senddate = $senddate;
return $this;
}
public function getSubscribercount(): ?int
{
return $this->subscribercount;
}
public function setSubscribercount(int $subscribercount): self
{
$this->subscribercount = $subscribercount;
return $this;
}
public function getAttachmentfiletitle(): ?string
{
return $this->attachmentfiletitle;
}
public function setAttachmentfiletitle(?string $attachmentfiletitle): self
{
$this->attachmentfiletitle = $attachmentfiletitle;
return $this;
}
public function getIsadmin(): ?bool
{
return $this->isadmin;
}
public function setIsadmin(bool $isadmin): self
{
$this->isadmin = $isadmin;
return $this;
}
}