src/Entity/Dispatch/Log.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Dispatch;
  3. use App\Entity\AppUser;
  4. use App\Repository\Dispatch\LogRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=LogRepository::class)
  8.  * @ORM\Table(name="dispatch_log")
  9.  */
  10. class Log
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Dispatch::class, inversedBy="logs")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $dispatch;
  23.     /**
  24.      * @ORM\Column(type="datetime_immutable")
  25.      */
  26.     private $createdAt;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="dispatchLogs")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $createdBy;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $operation;
  36.     /**
  37.      * @ORM\Column(type="text")
  38.      */
  39.     private $extraInfo;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getDispatch(): ?Dispatch
  45.     {
  46.         return $this->dispatch;
  47.     }
  48.     public function setDispatch(?Dispatch $dispatch): self
  49.     {
  50.         $this->dispatch $dispatch;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62.     public function getCreatedBy(): ?AppUser
  63.     {
  64.         return $this->createdBy;
  65.     }
  66.     public function setCreatedBy(?AppUser $createdBy): self
  67.     {
  68.         $this->createdBy $createdBy;
  69.         return $this;
  70.     }
  71.     public function getOperation(): ?string
  72.     {
  73.         return $this->operation;
  74.     }
  75.     public function setOperation(string $operation): self
  76.     {
  77.         $this->operation $operation;
  78.         return $this;
  79.     }
  80.     public function getExtraInfo(): ?string
  81.     {
  82.         return $this->extraInfo;
  83.     }
  84.     public function setExtraInfo(string $extraInfo): self
  85.     {
  86.         $this->extraInfo $extraInfo;
  87.         return $this;
  88.     }
  89. }