vendor/uvdesk/support-center-bundle/Entity/ArticleViewLog.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\SupportCenterBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ArticleViewLog
  6.  * @ORM\Entity(repositoryClass=null)
  7.  * @ORM\HasLifecycleCallbacks
  8.  * @ORM\Table(name="uv_article_view_log")
  9.  */
  10. class ArticleViewLog
  11. {
  12.     /**
  13.      * @var integer
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var \DateTime
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $viewedAt;
  24.     /**
  25.      * @var \Webkul\UserBundle\Entity\User
  26.      * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\CoreFrameworkBundle\Entity\User")
  27.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
  28.      */
  29.     private $user;
  30.     /**
  31.      * @var \Webkul\SupportCenterBundle\Entity\Article
  32.      * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\SupportCenterBundle\Entity\Article")
  33.      * @ORM\JoinColumn(name="article_id", referencedColumnName="id", onDelete="CASCADE")
  34.      */
  35.     private $article;
  36.     /**
  37.      * Get id
  38.      *
  39.      * @return integer 
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * Set viewedAt
  47.      *
  48.      * @param \DateTime $viewedAt
  49.      * @return ArticleViewLog
  50.      */
  51.     public function setViewedAt($viewedAt)
  52.     {
  53.         $this->viewedAt $viewedAt;
  54.         return $this;
  55.     }
  56.     /**
  57.      * Get viewedAt
  58.      *
  59.      * @return \DateTime 
  60.      */
  61.     public function getViewedAt()
  62.     {
  63.         return $this->viewedAt;
  64.     }
  65.     /**
  66.      * Set user
  67.      *
  68.      * @param \Webkul\UserBundle\Entity\User $user
  69.      * @return ArticleViewLog
  70.      */
  71.     public function setUser(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $user null)
  72.     {
  73.         $this->user $user;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get user
  78.      *
  79.      * @return \Webkul\UserBundle\Entity\User 
  80.      */
  81.     public function getUser()
  82.     {
  83.         return $this->user;
  84.     }
  85.    
  86.     /**
  87.      * Set article
  88.      *
  89.      * @param \Webkul\SupportCenterBundle\Entity\Article $article
  90.      * @return ArticleViewLog
  91.      */
  92.     public function setArticle(\Webkul\UVDesk\SupportCenterBundle\Entity\Article $article null)
  93.     {
  94.         $this->article $article;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get article
  99.      *
  100.      * @return \Webkul\SupportCenterBundle\Entity\Article 
  101.      */
  102.     public function getArticle()
  103.     {
  104.         return $this->article;
  105.     }
  106. }