src/Entity/MailAttachment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MailAttachmentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MailAttachmentRepository::class)
  7.  */
  8. class MailAttachment
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=4083, nullable=true)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="text", length=16777215)
  22.      */
  23.     private $body;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Mail::class,cascade={"persist"})
  26.      */
  27.     private $mail;
  28.     /**
  29.      * @return mixed
  30.      */
  31.     public function getId()
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * @param mixed $id
  37.      */
  38.     public function setId($id): void
  39.     {
  40.         $this->id $id;
  41.     }
  42.     /**
  43.      * @return mixed
  44.      */
  45.     public function getName()
  46.     {
  47.         return $this->name;
  48.     }
  49.     /**
  50.      * @param mixed $name
  51.      */
  52.     public function setName($name): void
  53.     {
  54.         $this->name $name;
  55.     }
  56.     /**
  57.      * @return mixed
  58.      */
  59.     public function getBody()
  60.     {
  61.         return $this->body;
  62.     }
  63.     /**
  64.      * @param mixed $body
  65.      */
  66.     public function setBody($body): void
  67.     {
  68.         $this->body $body;
  69.     }
  70.     /**
  71.      * @return mixed
  72.      */
  73.     public function getMail()
  74.     {
  75.         return $this->mail;
  76.     }
  77.     /**
  78.      * @param mixed $mail
  79.      */
  80.     public function setMail($mail): void
  81.     {
  82.         $this->mail $mail;
  83.     }
  84. }