src/App/Entity/ExternalFeedXmlSection.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(
  8. * name="external_feed_xml_sections"
  9. * )
  10. */
  11. class ExternalFeedXmlSection
  12. {
  13. public function __construct(
  14. string $datetimeIdentifier,
  15. int $feedPartnerId,
  16. string $xmlFeedCategory,
  17. string $recurrentJobsId,
  18. ?string $xmlSection = null
  19. ) {
  20. $this->datetimeIdentifier = $datetimeIdentifier;
  21. $this->feedPartnerId = $feedPartnerId;
  22. $this->xmlFeedCategory = $xmlFeedCategory;
  23. $this->recurrentJobsId = $recurrentJobsId;
  24. $this->xmlSection = $xmlSection;
  25. }
  26. /**
  27. * @ORM\Column(name="datetime_identifier", type="string")
  28. *
  29. * @ORM\Id
  30. */
  31. protected string $datetimeIdentifier;
  32. /**
  33. * @ORM\Column(name="xml_section", type="text", length=8192, nullable=true)
  34. */
  35. private ?string $xmlSection = null;
  36. /**
  37. * @ORM\Column(name="feed_partner_id", type="integer", nullable=false)
  38. *
  39. * @ORM\Id
  40. */
  41. private int $feedPartnerId;
  42. /**
  43. * @ORM\Column(name="xml_feed_category", type="string", nullable=false)
  44. *
  45. * @ORM\Id
  46. */
  47. protected string $xmlFeedCategory;
  48. /**
  49. * @ORM\Column(name="recurrent_jobs_id", type="string", nullable=false)
  50. *
  51. * @ORM\Id
  52. */
  53. protected string $recurrentJobsId;
  54. public function getDatetimeIdentifier(): string
  55. {
  56. return $this->datetimeIdentifier;
  57. }
  58. public function setDatetimeIdentifier(string $datetimeIdentifier): void
  59. {
  60. $this->datetimeIdentifier = $datetimeIdentifier;
  61. }
  62. public function getXmlSection(): ?string
  63. {
  64. return $this->xmlSection;
  65. }
  66. public function setXmlSection(?string $xmlSection): void
  67. {
  68. $this->xmlSection = $xmlSection;
  69. }
  70. public function getFeedPartnerId(): int
  71. {
  72. return $this->feedPartnerId;
  73. }
  74. public function setFeedPartnerId(int $feedPartnerId): void
  75. {
  76. $this->feedPartnerId = $feedPartnerId;
  77. }
  78. public function getXmlFeedCategory(): string
  79. {
  80. return $this->xmlFeedCategory;
  81. }
  82. public function setXmlFeedCategory(string $xmlFeedCategory): void
  83. {
  84. $this->xmlFeedCategory = $xmlFeedCategory;
  85. }
  86. public function setRecurrentJobsId(string $recurrentJobsId): void
  87. {
  88. $this->recurrentJobsId = $recurrentJobsId;
  89. }
  90. public function getRecurrentJobsId(): string
  91. {
  92. return $this->recurrentJobsId;
  93. }
  94. }