src/Flexy/ShopBundle/Entity/Product/ImportExcel.php line 14
<?php
namespace App\Flexy\ShopBundle\Entity\Product;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Flexy\ShopBundle\Entity\Vendor\Vendor;
use App\Repository\Flexy\ShopBundle\Entity\ImportExcel\ImportExcelRepository;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Table;
#[ApiResource]
#[Table(name: 'flexy_shop_import_data')]
#[ORM\Entity(repositoryClass: ImportExcelRepository::class)]
class ImportExcel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private ?string $file = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $description = null;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private ?\DateTimeImmutable $createdAt = null;
#[ORM\ManyToOne(targetEntity: Vendor::class, inversedBy: 'importExcels')]
private ?\App\Flexy\ShopBundle\Entity\Vendor\Vendor $vendor = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $totalLinesImported = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $totalLinesIgnored = null;
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getFile(): ?string
{
return $this->file;
}
public function setFile(string $file): self
{
$this->file = $file;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getVendor(): ?Vendor
{
return $this->vendor;
}
public function setVendor(?Vendor $vendor): self
{
$this->vendor = $vendor;
return $this;
}
public function getTotalLinesImported(): ?int
{
return $this->totalLinesImported;
}
public function setTotalLinesImported(?int $totalLinesImported): self
{
$this->totalLinesImported = $totalLinesImported;
return $this;
}
public function getTotalLinesIgnored(): ?int
{
return $this->totalLinesIgnored;
}
public function setTotalLinesIgnored(?int $totalLinesIgnored): self
{
$this->totalLinesIgnored = $totalLinesIgnored;
return $this;
}
}