<?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\Column(type="string", length=4083, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="text", length=16777215)
*/
private $body;
/**
* @ORM\ManyToOne(targetEntity=Mail::class,cascade={"persist"})
*/
private $mail;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name): void
{
$this->name = $name;
}
/**
* @return mixed
*/
public function getBody()
{
return $this->body;
}
/**
* @param mixed $body
*/
public function setBody($body): void
{
$this->body = $body;
}
/**
* @return mixed
*/
public function getMail()
{
return $this->mail;
}
/**
* @param mixed $mail
*/
public function setMail($mail): void
{
$this->mail = $mail;
}
}