<?php
namespace App\Entity;
use App\Repository\ProductImportRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass=ProductImportRepository::class)
*/
class ProductImport
{
use TimestampableEntity;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $file_name;
/**
* @ORM\Column(type="boolean")
*/
private $status;
/**
* @ORM\Column(type="json")
*/
private $result = [];
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="productImports")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getFileName(): ?string
{
return $this->file_name;
}
public function setFileName(string $file_name): self
{
$this->file_name = $file_name;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
public function getResult(): ?array
{
return $this->result;
}
public function setResult(array $result): self
{
$this->result = $result;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}