src/Entity/Upload.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UploadRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: UploadRepository::class)]
  6. class Upload
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type: 'integer')]
  11.     private $id;
  12.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  13.     private $mime_type;
  14.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  15.     private $viewable_name;
  16.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  17.     private $originale_name;
  18.     #[ORM\Column(type: 'datetime', nullable: true)]
  19.     private $created_at;
  20.     #[ORM\Column(type: 'datetime', nullable: true)]
  21.     private $deleted_at;
  22.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  23.     private $path;
  24.     #[ORM\ManyToOne(targetEntity: Carriers::class)]
  25.     private $carrier;
  26.     #[ORM\ManyToOne(inversedBy: 'uploads')]
  27.     private ?Ticket $ticket = null;
  28.     #[ORM\ManyToOne(inversedBy: 'uploads')]
  29.     private ?Task $task = null;
  30.     #[ORM\Column(length: 255, nullable: true)]
  31.     private ?string $type = null;
  32.     #[ORM\ManyToOne(inversedBy: 'uploads')]
  33.     private ?Litige $litige = null;
  34.     #[ORM\ManyToOne(inversedBy: 'uploads')]
  35.     private ?Goods $good = null;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getMimeType(): ?string
  41.     {
  42.         return $this->mime_type;
  43.     }
  44.     public function setMimeType(?string $mime_type): self
  45.     {
  46.         $this->mime_type = $mime_type;
  47.         return $this;
  48.     }
  49.     public function getViewableName(): ?string
  50.     {
  51.         return $this->viewable_name;
  52.     }
  53.     public function setViewableName(?string $viewable_name): self
  54.     {
  55.         $this->viewable_name = $viewable_name;
  56.         return $this;
  57.     }
  58.     public function getOriginaleName(): ?string
  59.     {
  60.         return $this->originale_name;
  61.     }
  62.     public function setOriginaleName(?string $originale_name): self
  63.     {
  64.         $this->originale_name = $originale_name;
  65.         return $this;
  66.     }
  67.     public function getCreatedAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->created_at;
  70.     }
  71.     public function setCreatedAt(?\DateTimeInterface $created_at): self
  72.     {
  73.         $this->created_at = $created_at;
  74.         return $this;
  75.     }
  76.     public function getDeletedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->deleted_at;
  79.     }
  80.     public function setDeletedAt(?\DateTimeInterface $deleted_at): self
  81.     {
  82.         $this->deleted_at = $deleted_at;
  83.         return $this;
  84.     }
  85.     public function getPath(): ?string
  86.     {
  87.         return $this->path;
  88.     }
  89.     public function setPath(?string $path): self
  90.     {
  91.         $this->path = $path;
  92.         return $this;
  93.     }
  94.     public function getCarrier(): ?Carriers
  95.     {
  96.         return $this->carrier;
  97.     }
  98.     public function setCarrier(?Carriers $carrier): self
  99.     {
  100.         $this->carrier = $carrier;
  101.         return $this;
  102.     }
  103.     public function getTicket(): ?Ticket
  104.     {
  105.         return $this->ticket;
  106.     }
  107.     public function setTicket(?Ticket $ticket): static
  108.     {
  109.         $this->ticket = $ticket;
  110.         return $this;
  111.     }
  112.     public function getTask(): ?Task
  113.     {
  114.         return $this->task;
  115.     }
  116.     public function setTask(?Task $task): static
  117.     {
  118.         $this->task = $task;
  119.         return $this;
  120.     }
  121.     public function getType(): ?string
  122.     {
  123.         return $this->type;
  124.     }
  125.     public function setType(?string $type): static
  126.     {
  127.         $this->type = $type;
  128.         return $this;
  129.     }
  130.     public function getLitige(): ?Litige
  131.     {
  132.         return $this->litige;
  133.     }
  134.     public function setLitige(?Litige $litige): static
  135.     {
  136.         $this->litige = $litige;
  137.         return $this;
  138.     }
  139.     public function getGood(): ?Goods
  140.     {
  141.         return $this->good;
  142.     }
  143.     public function setGood(?Goods $good): static
  144.     {
  145.         $this->good = $good;
  146.         return $this;
  147.     }
  148. }