src/App/Entity/ExternalPartner/Gohiring/GohiringUpdateJobPostingData.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\ExternalPartner\Gohiring;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(
  8. * name="gohiring_update_job_posting_data",
  9. * )
  10. */
  11. class GohiringUpdateJobPostingData
  12. {
  13. public function __construct(
  14. string $postingId,
  15. string $postingDataUpdate
  16. ) {
  17. $this->postingId = $postingId;
  18. $this->postingDataUpdate = $postingDataUpdate;
  19. }
  20. /**
  21. * @ORM\GeneratedValue(strategy="CUSTOM")
  22. *
  23. * @ORM\CustomIdGenerator(class="App\Utility\DatabaseIdGenerator")
  24. *
  25. * @ORM\Column(name="id", type="guid")
  26. *
  27. * @ORM\Id
  28. */
  29. private string $id;
  30. public function setId(string $id): void
  31. {
  32. $this->$id = $id;
  33. }
  34. public function getId(): string
  35. {
  36. return $this->id;
  37. }
  38. /**
  39. * @ORM\Column(name="posting_id", type="string", length=255)
  40. */
  41. private string $postingId;
  42. public function setPostingId(string $postingId): void
  43. {
  44. $this->postingId = $postingId;
  45. }
  46. public function getPostingId(): string
  47. {
  48. return $this->postingId;
  49. }
  50. /**
  51. * @ORM\Column(name="posting_data_update", type="json", nullable=false)
  52. */
  53. private string $postingDataUpdate;
  54. public function setPostingDataUpdate(string $postingDataUpdate): void
  55. {
  56. $this->postingDataUpdate = $postingDataUpdate;
  57. }
  58. public function getPostingDataUpdate(): string
  59. {
  60. return $this->postingDataUpdate;
  61. }
  62. }