src/Croqvacances/CookieConsentBundle/Entity/Cook2.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Croqvacances\CookieConsentBundle\Entity;
  3. use App\Repository\Cook2Repository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=Cook2Repository::class)
  7. */
  8. class Cook2
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=50, nullable=true)
  18. */
  19. private $ipAddress;
  20. /**
  21. * @ORM\Column(type="string", length=120)
  22. */
  23. private $cookieConsentKey;
  24. /**
  25. * @ORM\Column(type="string", length=50)
  26. */
  27. private $cookieName;
  28. /**
  29. * @ORM\Column(type="string", length=5)
  30. */
  31. private $cookieValue;
  32. /**
  33. * @ORM\Column(type="datetime_immutable")
  34. */
  35. private $createdAt;
  36. /**
  37. * @ORM\Column(type="datetime_immutable")
  38. */
  39. private $validUntil;
  40. public function getId(): ?int
  41. {
  42. return $this->id;
  43. }
  44. public function getIpAddress(): ?string
  45. {
  46. return $this->ipAddress;
  47. }
  48. public function setIpAddress(?string $ipAddress): self
  49. {
  50. $this->ipAddress = $ipAddress;
  51. return $this;
  52. }
  53. public function getCookieConsentKey(): ?string
  54. {
  55. return $this->cookieConsentKey;
  56. }
  57. public function setCookieConsentKey(string $cookieConsentKey): self
  58. {
  59. $this->cookieConsentKey = $cookieConsentKey;
  60. return $this;
  61. }
  62. public function getCookieName(): ?string
  63. {
  64. return $this->cookieName;
  65. }
  66. public function setCookieName(string $cookieName): self
  67. {
  68. $this->cookieName = $cookieName;
  69. return $this;
  70. }
  71. public function getCookieValue(): ?string
  72. {
  73. return $this->cookieValue;
  74. }
  75. public function setCookieValue(string $cookieValue): self
  76. {
  77. $this->cookieValue = $cookieValue;
  78. return $this;
  79. }
  80. public function getCreatedAt(): ?\DateTimeImmutable
  81. {
  82. return $this->createdAt;
  83. }
  84. public function setCreatedAt(\DateTimeImmutable $createdAt): self
  85. {
  86. $this->createdAt = $createdAt;
  87. return $this;
  88. }
  89. public function getvalidUntil(): ?\DateTimeImmutable
  90. {
  91. return $this->validUntil;
  92. }
  93. public function setvalidUntil(\DateTimeImmutable $validUntil): self
  94. {
  95. $this->validUntil = $validUntil;
  96. return $this;
  97. }
  98. }