src/Entity/Channel/DataImportLog.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Channel;
  3. use App\Repository\Channel\DataImportLogRepository;
  4. use DrosalysWeb\ObjectExtensions\Blame\Model\CreatedBlameInterface;
  5. use DrosalysWeb\ObjectExtensions\Blame\Model\CreatedBlameTrait;
  6. use DrosalysWeb\ObjectExtensions\Timestamp\Model\CreatedTimestampInterface;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use DrosalysWeb\ObjectExtensions\Timestamp\Model\CreatedTimestampTrait;
  9. #[
  10.     ORM\Entity(repositoryClassDataImportLogRepository::class),
  11.     ORM\Table(name'logs_data_import')
  12. ]
  13. class DataImportLog implements CreatedBlameInterfaceCreatedTimestampInterface
  14. {
  15.     use CreatedBlameTrait;
  16.     use CreatedTimestampTrait;
  17.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  18.     private ?int $id null;
  19.     #[ORM\ManyToOne(targetEntityChannel::class)]
  20.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  21.     private ?Channel $channel null;
  22.     #[ORM\Column(type'integer'nullabletrue)]
  23.     private ?int $readCount null;
  24.     #[ORM\Column(type'integer'nullabletrue)]
  25.     private ?int $mappedCount null;
  26.     #[ORM\Column(type'integer'nullabletrue)]
  27.     private ?int $validatedCount null;
  28.     #[ORM\Column(type'integer'nullabletrue)]
  29.     private ?int $persistedCount null;
  30.     #[ORM\Column(type'integer'nullabletrue)]
  31.     private ?int $updatedCount null;
  32.     #[ORM\Column(type'integer'nullabletrue)]
  33.     private ?int $createdCount null;
  34.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => false])]
  35.     private bool $hasErrors false;
  36.      #[ORM\Column(type'string'length255nullabletrue)]
  37.     private ?string $importer null;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private ?string $title null;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getChannel(): ?Channel
  45.     {
  46.         return $this->channel;
  47.     }
  48.     public function setChannel(?Channel $channel): DataImportLog
  49.     {
  50.         $this->channel $channel;
  51.         return $this;
  52.     }
  53.     public function getReadCount(): ?int
  54.     {
  55.         return $this->readCount;
  56.     }
  57.     public function setReadCount(?int $readCount): DataImportLog
  58.     {
  59.         $this->readCount $readCount;
  60.         return $this;
  61.     }
  62.     public function getMappedCount(): ?int
  63.     {
  64.         return $this->mappedCount;
  65.     }
  66.     public function setMappedCount(?int $mappedCount): DataImportLog
  67.     {
  68.         $this->mappedCount $mappedCount;
  69.         return $this;
  70.     }
  71.     public function getValidatedCount(): ?int
  72.     {
  73.         return $this->validatedCount;
  74.     }
  75.     public function setValidatedCount(?int $validatedCount): DataImportLog
  76.     {
  77.         $this->validatedCount $validatedCount;
  78.         return $this;
  79.     }
  80.     public function getPersistedCount(): ?int
  81.     {
  82.         return $this->persistedCount;
  83.     }
  84.     public function setPersistedCount(?int $persistedCount): DataImportLog
  85.     {
  86.         $this->persistedCount $persistedCount;
  87.         return $this;
  88.     }
  89.     public function getUpdatedCount(): ?int
  90.     {
  91.         return $this->updatedCount;
  92.     }
  93.     public function setUpdatedCount(?int $updatedCount): DataImportLog
  94.     {
  95.         $this->updatedCount $updatedCount;
  96.         return $this;
  97.     }
  98.     public function getCreatedCount(): ?int
  99.     {
  100.         return $this->createdCount;
  101.     }
  102.     public function setCreatedCount(?int $createdCount): DataImportLog
  103.     {
  104.         $this->createdCount $createdCount;
  105.         return $this;
  106.     }
  107.     public function isHasErrors(): bool
  108.     {
  109.         return $this->hasErrors;
  110.     }
  111.     public function setHasErrors(bool $hasErrors): DataImportLog
  112.     {
  113.         $this->hasErrors $hasErrors;
  114.         return $this;
  115.     }
  116.     public function getImporter(): ?string
  117.     {
  118.         return $this->importer;
  119.     }
  120.     public function setImporter(?string $importer): DataImportLog
  121.     {
  122.         $this->importer $importer;
  123.         return $this;
  124.     }
  125.     public function getTitle(): ?string
  126.     {
  127.         return $this->title;
  128.     }
  129.     public function setTitle(?string $title): DataImportLog
  130.     {
  131.         $this->title $title;
  132.         return $this;
  133.     }
  134. }