src/Entity/Logs/AdyenNotification.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Logs;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table(name="adyen_notification")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\Logs\AdyenNotificationRepository")
  8. */
  9. class AdyenNotification
  10. {
  11. /**
  12. * @var int
  13. *
  14. * @ORM\Id
  15. *
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. *
  18. * @ORM\Column(type="integer", name="id")
  19. */
  20. private $id;
  21. /**
  22. * @ORM\Column(type="integer", name="order_id")
  23. */
  24. private $order;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(type="string", name="event_code")
  29. */
  30. private $eventCode;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(type="string", name="success")
  35. */
  36. private $success;
  37. /**
  38. * @var string
  39. *
  40. * @ORM\Column(type="text", name="message")
  41. */
  42. private $message;
  43. /**
  44. * @var \DateTime
  45. *
  46. * @ORM\Column(name="date_add", type="datetime")
  47. */
  48. private $dateAdd;
  49. /**
  50. * @var string
  51. *
  52. * @ORM\Column(type="string", name="psp_reference")
  53. */
  54. private $pspReference;
  55. /**
  56. * @return int
  57. */
  58. public function getId(): int
  59. {
  60. return $this->id;
  61. }
  62. public function initialize(int $order, string $eventCode, string $success, string $pspReference, string $message): self
  63. {
  64. $this->order = $order;
  65. $this->eventCode = $eventCode;
  66. $this->success = $success;
  67. $this->message = $message;
  68. $this->pspReference = $pspReference;
  69. $this->dateAdd = new \DateTime();
  70. return $this;
  71. }
  72. /**
  73. * @return int
  74. */
  75. public function getOrder(): int
  76. {
  77. return $this->order;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getEventCode(): string
  83. {
  84. return $this->eventCode;
  85. }
  86. /**
  87. * @return string
  88. */
  89. public function getSuccess(): string
  90. {
  91. return $this->success;
  92. }
  93. /**
  94. * @return string
  95. */
  96. public function getMessage(): string
  97. {
  98. return $this->message;
  99. }
  100. /**
  101. * @return \DateTime
  102. */
  103. public function getDateAdd(): \DateTime
  104. {
  105. return $this->dateAdd;
  106. }
  107. /**
  108. * @return string
  109. */
  110. public function getPspReference(): string
  111. {
  112. return $this->pspReference;
  113. }
  114. }