src/Entity/MatterLicenceRenewalLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace MedBrief\MSR\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Timestampable\Traits\TimestampableEntity;
  5. use MedBrief\MSR\Repository\MatterLicenceRenewalLogRepository;
  6. /**
  7. * @ORM\Entity(repositoryClass=MatterLicenceRenewalLogRepository::class)
  8. */
  9. class MatterLicenceRenewalLog
  10. {
  11. use TimestampableEntity;
  12. /**
  13. * @ORM\Id
  14. *
  15. * @ORM\GeneratedValue
  16. *
  17. * @ORM\Column(type="integer")
  18. */
  19. private ?int $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=LicenceRenewalTerm::class, inversedBy="matterLicenceRenewalLogs")
  22. *
  23. * @ORM\JoinColumn(nullable=false)
  24. */
  25. private ?LicenceRenewalTerm $licenceRenewalTerm;
  26. /**
  27. * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="matterLicenceRenewalLogs")
  28. *
  29. * @ORM\JoinColumn(nullable=false)
  30. */
  31. private ?Project $project;
  32. /**
  33. * @ORM\Column(type="integer")
  34. */
  35. private ?int $period;
  36. /**
  37. * @return int|null
  38. */
  39. public function getId(): ?int
  40. {
  41. return $this->id;
  42. }
  43. /**
  44. * @return LicenceRenewalTerm|null
  45. */
  46. public function getLicenceRenewalTerm(): ?LicenceRenewalTerm
  47. {
  48. return $this->licenceRenewalTerm;
  49. }
  50. /**
  51. * @param LicenceRenewalTerm|null $licenceRenewalTerm
  52. *
  53. * @return self
  54. */
  55. public function setLicenceRenewalTerm(?LicenceRenewalTerm $licenceRenewalTerm): self
  56. {
  57. $this->licenceRenewalTerm = $licenceRenewalTerm;
  58. return $this;
  59. }
  60. /**
  61. * @return Project|null
  62. */
  63. public function getProject(): ?Project
  64. {
  65. return $this->project;
  66. }
  67. /**
  68. * @param Project|null $project
  69. *
  70. * @return self
  71. */
  72. public function setProject(?Project $project): self
  73. {
  74. $this->project = $project;
  75. return $this;
  76. }
  77. /**
  78. * @return int|null
  79. */
  80. public function getPeriod(): ?int
  81. {
  82. return $this->period;
  83. }
  84. /**
  85. * @param int $period
  86. *
  87. * @return self
  88. */
  89. public function setPeriod(int $period): self
  90. {
  91. $this->period = $period;
  92. return $this;
  93. }
  94. }