src/Entity/Gos/AppSession.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\AppSessionRepository")
  6.  */
  7. class AppSession
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @var string
  17.      *
  18.      * @ORM\Column(name="hash", type="string", length=191, unique=true)
  19.      */
  20.     private $hash;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      */
  24.     private $createdAt;
  25.     /**
  26.      * @ORM\Column(type="datetime", nullable=true)
  27.      */
  28.     private $updatedAt;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\User")
  31.      * @ORM\JoinColumn()
  32.      */
  33.     private $user;
  34.     /**
  35.      * @ORM\Column(type="string", nullable=true)
  36.      */
  37.     private $uuid;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $folders;
  42.     /**
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $savedArticles;
  46.     /**
  47.      * @ORM\Column(type="datetime", nullable=true)
  48.      */
  49.     private $activityTime;
  50.     /**
  51.      * @ORM\Column(type="text", nullable=true)
  52.      */
  53.     private $currentAccess;
  54.     /**
  55.      * @ORM\Column(type="datetime", nullable=true)
  56.      */
  57.     private $foldersArticlesUpdatedAt;
  58.     /**
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $readingProgress;
  62.     /**
  63.      * @ORM\Column(type="text", nullable=true)
  64.      */
  65.     private $lastSeen;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $recentBannerCoupon;
  70.     public function __construct()
  71.     {
  72.         $this->createdAt = new \DateTime();
  73.         $this->updatedAt = new \DateTime();
  74.     }
  75.     public function getId(): ?int
  76.     {
  77.         return $this->id;
  78.     }
  79.     public function getHash(): ?string
  80.     {
  81.         return $this->hash;
  82.     }
  83.     public function setHash(string $hash): self
  84.     {
  85.         $this->hash $hash;
  86.         return $this;
  87.     }
  88.     public function getCreatedAt(): ?\DateTimeInterface
  89.     {
  90.         return $this->createdAt;
  91.     }
  92.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  93.     {
  94.         $this->createdAt $createdAt;
  95.         return $this;
  96.     }
  97.     public function getUpdatedAt(): ?\DateTimeInterface
  98.     {
  99.         return $this->updatedAt;
  100.     }
  101.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  102.     {
  103.         $this->updatedAt $updatedAt;
  104.         return $this;
  105.     }
  106.     public function getAccesses(): ?string
  107.     {
  108.         return $this->accesses;
  109.     }
  110.     public function setAccesses(string $accesses): self
  111.     {
  112.         $this->accesses $accesses;
  113.         return $this;
  114.     }
  115.     public function getUser()
  116.     {
  117.         return $this->user;
  118.     }
  119.     public function setUser(User $user null)
  120.     {
  121.         $this->user $user;
  122.         return $this;
  123.     }
  124.     public function getUuid()
  125.     {
  126.         return $this->uuid;
  127.     }
  128.     public function setUuid($uuid)
  129.     {
  130.         $this->uuid $uuid;
  131.     }
  132.     /**
  133.      * @return mixed
  134.      */
  135.     public function getFolders()
  136.     {
  137.         return $this->folders;
  138.     }
  139.     /**
  140.      * @param mixed $folders
  141.      */
  142.     public function setFolders($folders)
  143.     {
  144.         $this->folders $folders;
  145.     }
  146.     /**
  147.      * @return mixed
  148.      */
  149.     public function getSavedArticles()
  150.     {
  151.         return $this->savedArticles;
  152.     }
  153.     /**
  154.      * @param mixed $savedArticles
  155.      */
  156.     public function setSavedArticles($savedArticles)
  157.     {
  158.         $this->savedArticles $savedArticles;
  159.     }
  160.     public function getActivityTime(): ?\DateTimeInterface
  161.     {
  162.         return $this->activityTime;
  163.     }
  164.     public function setActivityTime(?\DateTimeInterface $activityTime): self
  165.     {
  166.         $this->activityTime $activityTime;
  167.         return $this;
  168.     }
  169.     public function getCurrentAccess(): ?string
  170.     {
  171.         return $this->currentAccess;
  172.     }
  173.     public function setCurrentAccess(?string $currentAccess): self
  174.     {
  175.         $this->currentAccess $currentAccess;
  176.         return $this;
  177.     }
  178.     public function getFoldersArticlesUpdatedAt(): ?\DateTimeInterface
  179.     {
  180.         return $this->foldersArticlesUpdatedAt;
  181.     }
  182.     public function setFoldersArticlesUpdatedAt(?\DateTimeInterface $foldersArticlesUpdatedAt): self
  183.     {
  184.         $this->foldersArticlesUpdatedAt $foldersArticlesUpdatedAt;
  185.         return $this;
  186.     }
  187.     public function getReadingProgress(): ?string
  188.     {
  189.         return $this->readingProgress;
  190.     }
  191.     public function setReadingProgress(?string $readingProgress): self
  192.     {
  193.         $this->readingProgress $readingProgress;
  194.         return $this;
  195.     }
  196.     public function getLastSeen(): ?string
  197.     {
  198.         return $this->lastSeen;
  199.     }
  200.     public function setLastSeen($lastSeen): self
  201.     {
  202.         $this->lastSeen $lastSeen;
  203.         return $this;
  204.     }
  205.     public function getRecentBannerCoupon(): ?string
  206.     {
  207.         return $this->recentBannerCoupon;
  208.     }
  209.     public function setRecentBannerCoupon(?string $recentBannerCoupon): self
  210.     {
  211.         $this->recentBannerCoupon $recentBannerCoupon;
  212.         return $this;
  213.     }
  214. }