src/Entity/Common/FileResource.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Common;
  3. use App\Entity\Quote\QuoteService;
  4. use App\Repository\Common\FileResourceRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FileResourceRepository::class)
  8.  */
  9. class FileResource
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $originalName;
  25.     /**
  26.      * @ORM\Column(type="datetime_immutable")
  27.      */
  28.     private $updatedAt;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=QuoteService::class, inversedBy="evidences")
  31.      */
  32.     private $quoteService;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getOriginalName(): ?string
  47.     {
  48.         return $this->originalName;
  49.     }
  50.     public function setOriginalName(string $originalName): self
  51.     {
  52.         $this->originalName $originalName;
  53.         return $this;
  54.     }
  55.     public function getUpdatedAt(): ?\DateTimeImmutable
  56.     {
  57.         return $this->updatedAt;
  58.     }
  59.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  60.     {
  61.         $this->updatedAt $updatedAt;
  62.         return $this;
  63.     }
  64.     public function getQuoteService(): ?QuoteService
  65.     {
  66.         return $this->quoteService;
  67.     }
  68.     public function setQuoteService(?QuoteService $quoteService): self
  69.     {
  70.         $this->quoteService $quoteService;
  71.         return $this;
  72.     }
  73. }