src/Entity/AttachedFile.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AttachedFileRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAttachedFileRepository::class)]
  6. class AttachedFile
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $path;
  14.     #[ORM\ManyToOne(targetEntityMessage::class, inversedBy'attachedFiles')]
  15.     private $message;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $name;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $type;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $extension;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getPath(): ?string
  27.     {
  28.         return $this->path;
  29.     }
  30.     public function setPath(string $path): self
  31.     {
  32.         $this->path $path;
  33.         return $this;
  34.     }
  35.     public function getMessage(): ?Message
  36.     {
  37.         return $this->message;
  38.     }
  39.     public function setMessage(?Message $message): self
  40.     {
  41.         $this->message $message;
  42.         return $this;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): self
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getType(): ?string
  54.     {
  55.         return $this->type;
  56.     }
  57.     public function setType(string $type): self
  58.     {
  59.         $this->type $type;
  60.         return $this;
  61.     }
  62.     public function getExtension(): ?string
  63.     {
  64.         return $this->extension;
  65.     }
  66.     public function setExtension(string $extension): self
  67.     {
  68.         $this->extension $extension;
  69.         return $this;
  70.     }
  71. }