<?php
namespace App\Entity\Gos;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\AppSessionRepository")
*/
class AppSession
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="hash", type="string", length=191, unique=true)
*/
private $hash;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\User")
* @ORM\JoinColumn()
*/
private $user;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $uuid;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $folders;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $savedArticles;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $activityTime;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $currentAccess;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $foldersArticlesUpdatedAt;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $readingProgress;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $lastSeen;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $recentBannerCoupon;
public function __construct()
{
$this->createdAt = new \DateTime();
$this->updatedAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getHash(): ?string
{
return $this->hash;
}
public function setHash(string $hash): self
{
$this->hash = $hash;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getAccesses(): ?string
{
return $this->accesses;
}
public function setAccesses(string $accesses): self
{
$this->accesses = $accesses;
return $this;
}
public function getUser()
{
return $this->user;
}
public function setUser(User $user = null)
{
$this->user = $user;
return $this;
}
public function getUuid()
{
return $this->uuid;
}
public function setUuid($uuid)
{
$this->uuid = $uuid;
}
/**
* @return mixed
*/
public function getFolders()
{
return $this->folders;
}
/**
* @param mixed $folders
*/
public function setFolders($folders)
{
$this->folders = $folders;
}
/**
* @return mixed
*/
public function getSavedArticles()
{
return $this->savedArticles;
}
/**
* @param mixed $savedArticles
*/
public function setSavedArticles($savedArticles)
{
$this->savedArticles = $savedArticles;
}
public function getActivityTime(): ?\DateTimeInterface
{
return $this->activityTime;
}
public function setActivityTime(?\DateTimeInterface $activityTime): self
{
$this->activityTime = $activityTime;
return $this;
}
public function getCurrentAccess(): ?string
{
return $this->currentAccess;
}
public function setCurrentAccess(?string $currentAccess): self
{
$this->currentAccess = $currentAccess;
return $this;
}
public function getFoldersArticlesUpdatedAt(): ?\DateTimeInterface
{
return $this->foldersArticlesUpdatedAt;
}
public function setFoldersArticlesUpdatedAt(?\DateTimeInterface $foldersArticlesUpdatedAt): self
{
$this->foldersArticlesUpdatedAt = $foldersArticlesUpdatedAt;
return $this;
}
public function getReadingProgress(): ?string
{
return $this->readingProgress;
}
public function setReadingProgress(?string $readingProgress): self
{
$this->readingProgress = $readingProgress;
return $this;
}
public function getLastSeen(): ?string
{
return $this->lastSeen;
}
public function setLastSeen($lastSeen): self
{
$this->lastSeen = $lastSeen;
return $this;
}
public function getRecentBannerCoupon(): ?string
{
return $this->recentBannerCoupon;
}
public function setRecentBannerCoupon(?string $recentBannerCoupon): self
{
$this->recentBannerCoupon = $recentBannerCoupon;
return $this;
}
}