src/App/Entity/ExternalPartner/ExternalJobPostingCrawler/ExternalFeedCheckerResultRequestInfo.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\ExternalPartner\ExternalJobPostingCrawler;
  3. use App\Entity\RecurrentJob;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Exception;
  7. /**
  8. * @ORM\Entity
  9. *
  10. * @ORM\Table(
  11. * name="crawler_external_feed_checker_result_request_infos"
  12. * )
  13. */
  14. class ExternalFeedCheckerResultRequestInfo
  15. {
  16. /**
  17. * @ORM\GeneratedValue(strategy="CUSTOM")
  18. *
  19. * @ORM\CustomIdGenerator(class="App\Utility\DatabaseIdGenerator")
  20. *
  21. * @ORM\Column(name="id", type="guid")
  22. *
  23. * @ORM\Id
  24. */
  25. private string $id;
  26. public function getId(): int
  27. {
  28. return $this->id;
  29. }
  30. /**
  31. * @ORM\Column(name="received_at", type="datetime", nullable=false)
  32. */
  33. private DateTime $receivedAt;
  34. public function getReceivedAt(): DateTime
  35. {
  36. return $this->receivedAt;
  37. }
  38. public function setReceivedAt(DateTime $receivedAt): void
  39. {
  40. $this->receivedAt = $receivedAt;
  41. }
  42. /**
  43. * @ORM\Column(name="handling_was_successful", type="boolean")
  44. */
  45. private bool $handlingWasSuccessful;
  46. public function getHandlingWasSuccessful(): bool
  47. {
  48. return $this->handlingWasSuccessful;
  49. }
  50. public function setHandlingWasSuccessful(bool $handlingWasSuccessful): void
  51. {
  52. $this->handlingWasSuccessful = $handlingWasSuccessful;
  53. }
  54. /**
  55. * @ORM\Column(name="request_body", type="text", length=65536, nullable=false)
  56. */
  57. private string $requestBody;
  58. public function getRequestBody(): string
  59. {
  60. return $this->requestBody;
  61. }
  62. public function setRequestBody(string $requestBody): void
  63. {
  64. $this->requestBody = $requestBody;
  65. }
  66. /**
  67. * @ORM\Column(name="handling_error_message", type="text", length=8192, nullable=true)
  68. */
  69. private ?string $handlingErrorMessage;
  70. public function getHandlingErrorMessage(): ?string
  71. {
  72. return $this->handlingErrorMessage;
  73. }
  74. public function setHandlingErrorMessage(?string $handlingErrorMessage): void
  75. {
  76. $this->handlingErrorMessage = $handlingErrorMessage;
  77. }
  78. /**
  79. * @ORM\ManyToOne(targetEntity="App\Entity\RecurrentJob", cascade={"persist"})
  80. *
  81. * @ORM\JoinColumn(name="recurrent_jobs_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
  82. */
  83. private ?RecurrentJob $recurrentJob;
  84. /** @throws Exception */
  85. public function getRecurrentJob(): ?RecurrentJob
  86. {
  87. return $this->recurrentJob;
  88. }
  89. public function setRecurrentJob(?RecurrentJob $recurrentJob): void
  90. {
  91. $this->recurrentJob = $recurrentJob;
  92. }
  93. }