src/Entity/AnalyticsRequests.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnalyticsRequestsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=AnalyticsRequestsRepository::class)
  7. */
  8. class AnalyticsRequests
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Customer::class, inversedBy="analyticsRequests")
  18. */
  19. private $customer;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $type;
  24. /**
  25. * @ORM\Column(type="json")
  26. */
  27. private $request = [];
  28. /**
  29. * @ORM\Column(type="json", nullable=true)
  30. */
  31. private $result = [];
  32. /**
  33. * @ORM\Column(type="datetime")
  34. */
  35. private $created;
  36. /**
  37. * @ORM\ManyToOne(targetEntity=CurrencyPair::class)
  38. */
  39. private $currencyPair;
  40. /**
  41. * @ORM\Column(type="boolean", nullable=true)
  42. */
  43. private $status;
  44. public function getId(): ?int
  45. {
  46. return $this->id;
  47. }
  48. public function getCustomer(): ?Customer
  49. {
  50. return $this->customer;
  51. }
  52. public function setCustomer(?Customer $customer): self
  53. {
  54. $this->customer = $customer;
  55. return $this;
  56. }
  57. public function getType(): ?string
  58. {
  59. return $this->type;
  60. }
  61. public function setType(string $type): self
  62. {
  63. $this->type = $type;
  64. return $this;
  65. }
  66. public function getRequest(): ?array
  67. {
  68. return $this->request;
  69. }
  70. public function setRequest(array $request): self
  71. {
  72. $this->request = $request;
  73. return $this;
  74. }
  75. public function getResult(): ?array
  76. {
  77. return $this->result;
  78. }
  79. public function setResult(?array $result): self
  80. {
  81. $this->result = $result;
  82. return $this;
  83. }
  84. public function getCreated(): ?\DateTimeInterface
  85. {
  86. return $this->created;
  87. }
  88. public function setCreated(\DateTimeInterface $created): self
  89. {
  90. $this->created = $created;
  91. return $this;
  92. }
  93. public function getCurrencyPair(): ?CurrencyPair
  94. {
  95. return $this->currencyPair;
  96. }
  97. public function setCurrencyPair(?CurrencyPair $currencyPair): self
  98. {
  99. $this->currencyPair = $currencyPair;
  100. return $this;
  101. }
  102. public function getStatus(): ?bool
  103. {
  104. return $this->status;
  105. }
  106. public function setStatus(?bool $status): self
  107. {
  108. $this->status = $status;
  109. return $this;
  110. }
  111. }