src/Entity/ProductImport.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductImportRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProductImportRepository::class)
  8.  */
  9. class ProductImport
  10. {
  11.     use TimestampableEntity;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $file_name;
  22.     /**
  23.      * @ORM\Column(type="boolean")
  24.      */
  25.     private $status;
  26.     /**
  27.      * @ORM\Column(type="json")
  28.      */
  29.     private $result = [];
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="productImports")
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $user;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getFileName(): ?string
  40.     {
  41.         return $this->file_name;
  42.     }
  43.     public function setFileName(string $file_name): self
  44.     {
  45.         $this->file_name $file_name;
  46.         return $this;
  47.     }
  48.     public function getStatus(): ?bool
  49.     {
  50.         return $this->status;
  51.     }
  52.     public function setStatus(bool $status): self
  53.     {
  54.         $this->status $status;
  55.         return $this;
  56.     }
  57.     public function getResult(): ?array
  58.     {
  59.         return $this->result;
  60.     }
  61.     public function setResult(array $result): self
  62.     {
  63.         $this->result $result;
  64.         return $this;
  65.     }
  66.     public function getUser(): ?User
  67.     {
  68.         return $this->user;
  69.     }
  70.     public function setUser(?User $user): self
  71.     {
  72.         $this->user $user;
  73.         return $this;
  74.     }
  75. }