src/Entity/TransactionLog.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransactionLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TransactionLogRepository::class)
  7.  */
  8. class TransactionLog
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Transaction::class)
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $transaction;
  21.     /**
  22.      * @ORM\Column(type="string", length=50)
  23.      */
  24.     private $type;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $payload;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true)
  31.      */
  32.     private $httpStatus;
  33.     /**
  34.      * @ORM\Column(type="datetime")
  35.      */
  36.     private $createdAt;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getTransaction(): ?Transaction
  42.     {
  43.         return $this->transaction;
  44.     }
  45.     public function setTransaction(?Transaction $transaction): self
  46.     {
  47.         $this->transaction $transaction;
  48.         return $this;
  49.     }
  50.     public function getType(): ?string
  51.     {
  52.         return $this->type;
  53.     }
  54.     public function setType(string $type): self
  55.     {
  56.         $this->type $type;
  57.         return $this;
  58.     }
  59.     public function getPayload(): ?string
  60.     {
  61.         return $this->payload;
  62.     }
  63.     public function setPayload(string $payload): self
  64.     {
  65.         $this->payload $payload;
  66.         return $this;
  67.     }
  68.     public function getHttpStatus(): ?int
  69.     {
  70.         return $this->httpStatus;
  71.     }
  72.     public function setHttpStatus(?int $httpStatus): self
  73.     {
  74.         $this->httpStatus $httpStatus;
  75.         return $this;
  76.     }
  77.     public function getCreatedAt(): ?\DateTimeInterface
  78.     {
  79.         return $this->createdAt;
  80.     }
  81.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  82.     {
  83.         $this->createdAt $createdAt;
  84.         return $this;
  85.     }
  86. }