src/Entity/EmailAttachment.php line 17
<?phpdeclare(strict_types=1);namespace App\Entity;use App\Entity\Mapped\Entity;use App\Repository\EmailAttachmentRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EmailAttachmentRepository::class)]#[ORM\Table(name: 'email_attachment')]class EmailAttachment extends Entity{#[ORM\Column(name: 'name',type: 'string')]private string $name;#[ORM\Column(name: 'file',type: 'string')]private string $file;#[ORM\Column(name: 'mime_type',type: 'string')]private string $mimeType;#[ORM\ManyToOne(targetEntity: Email::class,cascade: ['persist'],inversedBy: 'attachments')]#[ORM\JoinColumn(name: 'email')]private ?Email $email;public function getName(): string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getFile(): string{return $this->file;}public function setFile(string $file): self{$this->file = $file;return $this;}public function getMimeType(): string{return $this->mimeType;}public function setMimeType(string $mimeType): self{$this->mimeType = $mimeType;return $this;}public function getEmail(): ?Email{return $this->email;}public function setEmail(?Email $email): self{$this->email = $email;return $this;}}