src/Entity/ProcessLog.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProcessLogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. #[ORM\Entity(repositoryClassProcessLogRepository::class)]
  8. class ProcessLog
  9. {
  10.     use TimestampableEntity;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $runTime null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $warning null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $error null;
  21.     #[ORM\Column]
  22.     private ?bool $completed null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getRunTime(): ?\DateTimeInterface
  28.     {
  29.         return $this->runTime;
  30.     }
  31.     public function setRunTime(\DateTimeInterface $runTime): self
  32.     {
  33.         $this->runTime $runTime;
  34.         return $this;
  35.     }
  36.     public function getWarning(): ?string
  37.     {
  38.         return $this->warning;
  39.     }
  40.     public function setWarning(?string $warning): self
  41.     {
  42.         $this->warning $warning;
  43.         return $this;
  44.     }
  45.     public function getError(): ?string
  46.     {
  47.         return $this->error;
  48.     }
  49.     public function setError(?string $error): self
  50.     {
  51.         $this->error $error;
  52.         return $this;
  53.     }
  54.     public function isCompleted(): ?bool
  55.     {
  56.         return $this->completed;
  57.     }
  58.     public function setCompleted(bool $completed): self
  59.     {
  60.         $this->completed $completed;
  61.         return $this;
  62.     }
  63. }