src/App/Entity/ExternalPartner/Gohiring/GohiringNewJobPostingData.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_new_job_posting_data",
  9. * )
  10. */
  11. class GohiringNewJobPostingData
  12. {
  13. public function __construct(
  14. string $postingId,
  15. string $newPostingData
  16. ) {
  17. $this->postingId = $postingId;
  18. $this->newPostingData = $newPostingData;
  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 = null;
  30. public function getId(): ?string
  31. {
  32. return $this->id;
  33. }
  34. /**
  35. * @ORM\Column(name="posting_id", type="string", length=255, unique=true)
  36. */
  37. private string $postingId;
  38. public function setPostingId(string $postingId): void
  39. {
  40. $this->postingId = $postingId;
  41. }
  42. public function getPostingId(): string
  43. {
  44. return $this->postingId;
  45. }
  46. /**
  47. * @ORM\Column(name="posting_data_new", type="json", nullable=false)
  48. */
  49. private string $newPostingData;
  50. public function setNewPostingData(string $newPostingData): void
  51. {
  52. $this->newPostingData = $newPostingData;
  53. }
  54. public function getNewPostingData(): string
  55. {
  56. return $this->newPostingData;
  57. }
  58. }