src/Entity/PlanUpdateLog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\PlanUpdateLogRepository")
  6. */
  7. class PlanUpdateLog
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="datetime")
  17. */
  18. private $updateDate;
  19. /**
  20. * @ORM\ManyToOne(targetEntity="App\Entity\Plan", inversedBy="planUpdateLogsFrom")
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. private $changeFrom;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="App\Entity\Plan", inversedBy="planUpdateLogsTo")
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private $changeTo;
  29. /**
  30. * @ORM\Column(type="string")
  31. */
  32. private $effectiveChangeOnTimeStamp;
  33. /**
  34. * @ORM\ManyToOne(targetEntity="App\Entity\SubscriptionOrder", inversedBy="planUpdateLogs")
  35. * @ORM\JoinColumn(nullable=false)
  36. */
  37. private $subscription;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getUpdateDate(): ?\DateTimeInterface
  43. {
  44. return $this->updateDate;
  45. }
  46. public function setUpdateDate(\DateTimeInterface $updateDate): self
  47. {
  48. $this->updateDate = $updateDate;
  49. return $this;
  50. }
  51. public function getChangeFrom(): ?Plan
  52. {
  53. return $this->changeFrom;
  54. }
  55. public function setChangeFrom(?Plan $changeFrom): self
  56. {
  57. $this->changeFrom = $changeFrom;
  58. return $this;
  59. }
  60. public function getChangeTo(): ?Plan
  61. {
  62. return $this->changeTo;
  63. }
  64. public function setChangeTo(?Plan $changeTo): self
  65. {
  66. $this->changeTo = $changeTo;
  67. return $this;
  68. }
  69. public function getEffectiveChangeOnTimeStamp(): ?string
  70. {
  71. return $this->effectiveChangeOnTimeStamp;
  72. }
  73. public function setEffectiveChangeOn(?string $effectiveChangeOnTimeStamp): self
  74. {
  75. $this->effectiveChangeOnTimeStamp = $effectiveChangeOnTimeStamp;
  76. return $this;
  77. }
  78. public function getSubscription(): ?SubscriptionOrder
  79. {
  80. return $this->subscription;
  81. }
  82. public function setSubscription(?SubscriptionOrder $subscription): self
  83. {
  84. $this->subscription = $subscription;
  85. return $this;
  86. }
  87. }