<?php
namespace App\Entity\Channel;
use App\Repository\Channel\DataImportLogRepository;
use DrosalysWeb\ObjectExtensions\Blame\Model\CreatedBlameInterface;
use DrosalysWeb\ObjectExtensions\Blame\Model\CreatedBlameTrait;
use DrosalysWeb\ObjectExtensions\Timestamp\Model\CreatedTimestampInterface;
use Doctrine\ORM\Mapping as ORM;
use DrosalysWeb\ObjectExtensions\Timestamp\Model\CreatedTimestampTrait;
#[
ORM\Entity(repositoryClass: DataImportLogRepository::class),
ORM\Table(name: 'logs_data_import')
]
class DataImportLog implements CreatedBlameInterface, CreatedTimestampInterface
{
use CreatedBlameTrait;
use CreatedTimestampTrait;
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Channel::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private ?Channel $channel = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $readCount = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $mappedCount = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $validatedCount = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $persistedCount = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $updatedCount = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $createdCount = null;
#[ORM\Column(type: 'boolean', nullable: false, options: ['default' => false])]
private bool $hasErrors = false;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $importer = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $title = null;
public function getId(): ?int
{
return $this->id;
}
public function getChannel(): ?Channel
{
return $this->channel;
}
public function setChannel(?Channel $channel): DataImportLog
{
$this->channel = $channel;
return $this;
}
public function getReadCount(): ?int
{
return $this->readCount;
}
public function setReadCount(?int $readCount): DataImportLog
{
$this->readCount = $readCount;
return $this;
}
public function getMappedCount(): ?int
{
return $this->mappedCount;
}
public function setMappedCount(?int $mappedCount): DataImportLog
{
$this->mappedCount = $mappedCount;
return $this;
}
public function getValidatedCount(): ?int
{
return $this->validatedCount;
}
public function setValidatedCount(?int $validatedCount): DataImportLog
{
$this->validatedCount = $validatedCount;
return $this;
}
public function getPersistedCount(): ?int
{
return $this->persistedCount;
}
public function setPersistedCount(?int $persistedCount): DataImportLog
{
$this->persistedCount = $persistedCount;
return $this;
}
public function getUpdatedCount(): ?int
{
return $this->updatedCount;
}
public function setUpdatedCount(?int $updatedCount): DataImportLog
{
$this->updatedCount = $updatedCount;
return $this;
}
public function getCreatedCount(): ?int
{
return $this->createdCount;
}
public function setCreatedCount(?int $createdCount): DataImportLog
{
$this->createdCount = $createdCount;
return $this;
}
public function isHasErrors(): bool
{
return $this->hasErrors;
}
public function setHasErrors(bool $hasErrors): DataImportLog
{
$this->hasErrors = $hasErrors;
return $this;
}
public function getImporter(): ?string
{
return $this->importer;
}
public function setImporter(?string $importer): DataImportLog
{
$this->importer = $importer;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): DataImportLog
{
$this->title = $title;
return $this;
}
}