src/Entity/Report/OrderTransaction.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Report;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table()
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\Report\OrderTransactionRepository")
  9. */
  10. class OrderTransaction
  11. {
  12. /**
  13. * @ORM\Id
  14. *
  15. * @ORM\Column(type="integer")
  16. *
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private ?int $id;
  20. /**
  21. * @ORM\Column(type="integer")
  22. */
  23. private int $orderId;
  24. /**
  25. * @ORM\Column(type="datetime")
  26. */
  27. private \DateTime $dateAdd;
  28. /**
  29. * @ORM\Column(type="text", nullable=true)
  30. */
  31. private ?string $message;
  32. /**
  33. * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"unsigned": 0})
  34. */
  35. private bool $success;
  36. /**
  37. * @ORM\Column(type="integer")
  38. */
  39. private int $paymentMethodId;
  40. /**
  41. * @ORM\Column(type="float")
  42. */
  43. private float $amount;
  44. public function __construct()
  45. {
  46. $this->dateAdd = new \DateTime();
  47. $this->message = null;
  48. $this->success = false;
  49. }
  50. public function getId(): ?int
  51. {
  52. return $this->id;
  53. }
  54. public function setId(?int $id): OrderTransaction
  55. {
  56. $this->id = $id;
  57. return $this;
  58. }
  59. public function getOrderId(): int
  60. {
  61. return $this->orderId;
  62. }
  63. public function setOrderId(int $orderId): OrderTransaction
  64. {
  65. $this->orderId = $orderId;
  66. return $this;
  67. }
  68. public function getDateAdd(): \DateTime
  69. {
  70. return $this->dateAdd;
  71. }
  72. public function getMessage(): ?string
  73. {
  74. return $this->message;
  75. }
  76. public function setMessage(?string $message): OrderTransaction
  77. {
  78. $this->message = $message;
  79. return $this;
  80. }
  81. public function isSuccess(): bool
  82. {
  83. return $this->success;
  84. }
  85. public function setSuccess(bool $success): OrderTransaction
  86. {
  87. $this->success = $success;
  88. return $this;
  89. }
  90. public function getPaymentMethodId(): int
  91. {
  92. return $this->paymentMethodId;
  93. }
  94. public function setPaymentMethodId(int $paymentMethodId): OrderTransaction
  95. {
  96. $this->paymentMethodId = $paymentMethodId;
  97. return $this;
  98. }
  99. public function getAmount(): float
  100. {
  101. return $this->amount;
  102. }
  103. public function setAmount(float $amount): OrderTransaction
  104. {
  105. $this->amount = $amount;
  106. return $this;
  107. }
  108. }