77 lines
1.3 KiB
PHP
77 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\MailAttachmentRepository;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Entity(repositoryClass=MailAttachmentRepository::class)
|
||
|
*/
|
||
|
class MailAttachment
|
||
|
{
|
||
|
/**
|
||
|
* @ORM\Id
|
||
|
* @ORM\GeneratedValue
|
||
|
* @ORM\Column(type="integer")
|
||
|
*/
|
||
|
private $id;
|
||
|
|
||
|
/**
|
||
|
* @ORM\ManyToOne(targetEntity=Mail::class, inversedBy="mailAttachments")
|
||
|
* @ORM\JoinColumn(nullable=false)
|
||
|
*/
|
||
|
private $mail;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="string", length=255)
|
||
|
*/
|
||
|
private $filename;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(type="string", length=255)
|
||
|
*/
|
||
|
private $contentType;
|
||
|
|
||
|
public function getId(): ?int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getMail(): ?Mail
|
||
|
{
|
||
|
return $this->mail;
|
||
|
}
|
||
|
|
||
|
public function setMail(?Mail $mail): self
|
||
|
{
|
||
|
$this->mail = $mail;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getFilename(): ?string
|
||
|
{
|
||
|
return $this->filename;
|
||
|
}
|
||
|
|
||
|
public function setFilename(string $filename): self
|
||
|
{
|
||
|
$this->filename = $filename;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getContentType(): ?string
|
||
|
{
|
||
|
return $this->contentType;
|
||
|
}
|
||
|
|
||
|
public function setContentType(string $contentType): self
|
||
|
{
|
||
|
$this->contentType = $contentType;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|