src/Entity/GuardianActionLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GuardianActionLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=GuardianActionLogRepository::class)
  8. */
  9. class GuardianActionLog
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. * @Groups({"GuardianActionList"})
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="guardianActionLogs")
  20. */
  21. private $guardian;
  22. /**
  23. * @ORM\Column(type="datetime", nullable=true)
  24. * @Groups({"GuardianActionList"})
  25. */
  26. private $createdAt;
  27. /**
  28. * @ORM\Column(type="integer", nullable=true)
  29. * @Groups({"GuardianActionList"})
  30. */
  31. private $userId;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. * @Groups({"GuardianActionList"})
  35. */
  36. private $userType;
  37. /**
  38. * @ORM\Column(type="boolean", nullable=true)
  39. * @Groups({"GuardianActionList"})
  40. */
  41. private $mailSent = 0;
  42. /**
  43. * @ORM\Column(type="integer", nullable=true)
  44. * @Groups({"GuardianActionList"})
  45. */
  46. private $objectId;
  47. /**
  48. * @ORM\Column(type="string", length=255, nullable=true)
  49. * @Groups({"GuardianActionList"})
  50. */
  51. private $objectType;
  52. /**
  53. * @ORM\Column(type="string", length=255, nullable=true)
  54. * @Groups({"GuardianActionList"})
  55. */
  56. private $route;
  57. /**
  58. * @ORM\Column(type="string", length=255, nullable=true)
  59. * @Groups({"GuardianActionList"})
  60. */
  61. private $actionType;
  62. /**
  63. * @ORM\Column(type="text", nullable=true)
  64. * @Groups({"GuardianActionList"})
  65. */
  66. private $data;
  67. public function __construct()
  68. {
  69. $this->createdAt = new \DateTime();
  70. }
  71. public function getId(): ?int
  72. {
  73. return $this->id;
  74. }
  75. public function getGuardian(): ?Guardian
  76. {
  77. return $this->guardian;
  78. }
  79. public function setGuardian(?Guardian $guardian): self
  80. {
  81. $this->guardian = $guardian;
  82. return $this;
  83. }
  84. public function getCreatedAt(): ?\DateTimeInterface
  85. {
  86. return $this->createdAt;
  87. }
  88. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  89. {
  90. $this->createdAt = $createdAt;
  91. return $this;
  92. }
  93. public function getUserId(): ?int
  94. {
  95. return $this->userId;
  96. }
  97. public function setUserId(?int $userId): self
  98. {
  99. $this->userId = $userId;
  100. return $this;
  101. }
  102. public function getUserType(): ?string
  103. {
  104. return $this->userType;
  105. }
  106. public function setUserType(?string $userType): self
  107. {
  108. $this->userType = $userType;
  109. return $this;
  110. }
  111. public function isMailSent(): ?bool
  112. {
  113. return $this->mailSent;
  114. }
  115. public function setMailSent(?bool $mailSent): self
  116. {
  117. $this->mailSent = $mailSent;
  118. return $this;
  119. }
  120. public function getObjectId(): ?int
  121. {
  122. return $this->objectId;
  123. }
  124. public function setObjectId(?int $objectId): self
  125. {
  126. $this->objectId = $objectId;
  127. return $this;
  128. }
  129. public function getObjectType(): ?string
  130. {
  131. return $this->objectType;
  132. }
  133. public function setObjectType(?string $objectType): self
  134. {
  135. $this->objectType = $objectType;
  136. return $this;
  137. }
  138. public function getRoute(): ?string
  139. {
  140. return $this->route;
  141. }
  142. public function setRoute(?string $route): self
  143. {
  144. $this->route = $route;
  145. return $this;
  146. }
  147. public function getActionType(): ?string
  148. {
  149. return $this->actionType;
  150. }
  151. public function setActionType(?string $actionType): self
  152. {
  153. $this->actionType = $actionType;
  154. return $this;
  155. }
  156. public function getData(): ?string
  157. {
  158. return $this->data;
  159. }
  160. public function setData(?string $data): self
  161. {
  162. $this->data = $data;
  163. return $this;
  164. }
  165. }