src/Entity/UserImportHistory.php line 12

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\UserImportHistoryRepository;
  4.     use App\Traits\DateTrait;
  5.     use Doctrine\ORM\Mapping as ORM;
  6.     /**
  7.      * @ORM\Entity(repositoryClass=UserImportHistoryRepository::class)
  8.      */
  9.     class UserImportHistory
  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 $file;
  21.         /**
  22.          * La personne qui importe le fichier
  23.          *
  24.          * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userImportHistories")
  25.          */
  26.         private $importer;
  27.         /**
  28.          * @ORM\Column(type="string", length=255)
  29.          */
  30.         private $role;
  31.         /**
  32.          * @ORM\Column(type="string", length=255)
  33.          */
  34.         private $originalName;
  35.         use DateTrait;
  36.         public function getId(): ?int
  37.         {
  38.             return $this->id;
  39.         }
  40.         public function getFile(): ?string
  41.         {
  42.             return $this->file;
  43.         }
  44.         public function setFilestring $file ): self
  45.         {
  46.             $this->file $file;
  47.             return $this;
  48.         }
  49.         public function getImporter(): ?User
  50.         {
  51.             return $this->importer;
  52.         }
  53.         public function setImporter( ?User $importer ): self
  54.         {
  55.             $this->importer $importer;
  56.             return $this;
  57.         }
  58.         public function getRole(): ?string
  59.         {
  60.             return $this->role;
  61.         }
  62.         public function setRolestring $role ): self
  63.         {
  64.             $this->role $role;
  65.             return $this;
  66.         }
  67.         public function getOriginalName(): ?string
  68.         {
  69.             return $this->originalName;
  70.         }
  71.         public function setOriginalNamestring $originalName ): self
  72.         {
  73.             $this->originalName $originalName;
  74.             return $this;
  75.         }
  76.     }