vendor/connectholland/cookie-consent-bundle/Entity/CookieConsentLog.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the ConnectHolland CookieConsentBundle package.
  5.  * (c) Connect Holland.
  6.  */
  7. namespace ConnectHolland\CookieConsentBundle\Entity;
  8. use DateTime;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="ch_cookieconsent_log")
  13.  */
  14. class CookieConsentLog
  15. {
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\Column(type="integer")
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      *
  21.      * @var int
  22.      */
  23.     protected $id;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      *
  27.      * @var string
  28.      */
  29.     protected $ipAddress;
  30.     /**
  31.      * @ORM\Column(type="string", length=255)
  32.      *
  33.      * @var string
  34.      */
  35.     protected $cookieConsentKey;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      *
  39.      * @var string
  40.      */
  41.     protected $cookieName;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      *
  45.      * @var string
  46.      */
  47.     protected $cookieValue;
  48.     /**
  49.      * @ORM\Column(type="datetime")
  50.      *
  51.      * @var DateTime
  52.      */
  53.     protected $timestamp;
  54.     public function getId(): int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function setIpAddress(string $ipAddress): self
  59.     {
  60.         $this->ipAddress $ipAddress;
  61.         return $this;
  62.     }
  63.     public function getIpAddress(): string
  64.     {
  65.         return $this->ipAddress;
  66.     }
  67.     public function setCookieConsentKey(string $cookieConsentKey): self
  68.     {
  69.         $this->cookieConsentKey $cookieConsentKey;
  70.         return $this;
  71.     }
  72.     public function getCookieConsentKey(): string
  73.     {
  74.         return $this->cookieConsentKey;
  75.     }
  76.     public function setCookieName(string $cookieName): self
  77.     {
  78.         $this->cookieName $cookieName;
  79.         return $this;
  80.     }
  81.     public function getCookieName(): string
  82.     {
  83.         return $this->cookieName;
  84.     }
  85.     public function setCookieValue(string $cookieValue): self
  86.     {
  87.         $this->cookieValue $cookieValue;
  88.         return $this;
  89.     }
  90.     public function getCookieValue(): string
  91.     {
  92.         return $this->cookieValue;
  93.     }
  94.     public function setTimestamp(DateTime $timestamp): self
  95.     {
  96.         $this->timestamp $timestamp;
  97.         return $this;
  98.     }
  99.     public function getTimestamp(): DateTime
  100.     {
  101.         return $this->timestamp;
  102.     }
  103. }