vendor/score/cms/src/Entity/Stat.php line 12

Open in your IDE?
  1. <?php
  2. namespace Score\CmsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Score\BaseBundle\Entity\BaseEntity;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="cms_stat")
  8. * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class Stat extends BaseEntity
  11. {
  12.     /**
  13.      * @ORM\Column(name="id", type="integer")
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(name="created_at", type="datetime")
  20.      */
  21.     protected $createdAt;
  22.     /**
  23.      * @ORM\Column(name="browser", type="text")
  24.      */
  25.     protected $browser;
  26.      /**
  27.      * @ORM\Column(name="source_type", type="string", length=255, nullable=true)
  28.      */
  29.     protected $sourceType;
  30.      /**
  31.      * @ORM\Column(name="stat_type", type="string", length=255, nullable=true)
  32.      */
  33.     protected $statType;
  34.      /**
  35.      * @ORM\Column(name="source_id", type="string", length=255, nullable=true)
  36.      */
  37.     protected $sourceId;
  38.     /**
  39.      * @ORM\Column(name="referer", type="string", length=1000, nullable=true)
  40.      */
  41.     protected $referer;
  42.      /**
  43.      * @ORM\Column(name="source_url", type="string", length=1000, nullable=true)
  44.      */
  45.     protected $sourceUrl;
  46.      /**
  47.      * @ORM\Column(name="source_title", type="string", length=1000, nullable=true)
  48.      */
  49.     protected $sourceTitle;
  50.      /**
  51.      * @ORM\Column(name="session_id", type="string", length=255, nullable=true)
  52.      */
  53.     protected $sessionId;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getCreatedAt(): ?\DateTimeInterface
  59.     {
  60.         return $this->createdAt;
  61.     }
  62.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  63.     {
  64.         $this->createdAt $createdAt;
  65.         return $this;
  66.     }
  67.     public function getBrowser(): ?string
  68.     {
  69.         return $this->browser;
  70.     }
  71.     public function setBrowser(string $browser): self
  72.     {
  73.         $this->browser $browser;
  74.         return $this;
  75.     }
  76.     public function getSourceType(): ?string
  77.     {
  78.         return $this->sourceType;
  79.     }
  80.     public function setSourceType(?string $sourceType): self
  81.     {
  82.         $this->sourceType $sourceType;
  83.         return $this;
  84.     }
  85.     public function getSourceId(): ?string
  86.     {
  87.         return $this->sourceId;
  88.     }
  89.     public function setSourceId(?string $sourceId): self
  90.     {
  91.         $this->sourceId $sourceId;
  92.         return $this;
  93.     }
  94.     public function getReferer(): ?string
  95.     {
  96.         return $this->referer;
  97.     }
  98.     public function setReferer(?string $referer): self
  99.     {
  100.         $this->referer $referer;
  101.         return $this;
  102.     }
  103.     public function getSessionId(): ?string
  104.     {
  105.         return $this->sessionId;
  106.     }
  107.     public function setSessionId(?string $sessionId): self
  108.     {
  109.         $this->sessionId $sessionId;
  110.         return $this;
  111.     }
  112.     /**
  113.      * Get the value of statType
  114.      */ 
  115.     public function getStatType()
  116.     {
  117.         return $this->statType;
  118.     }
  119.     /**
  120.      * Set the value of statType
  121.      *
  122.      * @return  self
  123.      */ 
  124.     public function setStatType($statType)
  125.     {
  126.         $this->statType $statType;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get the value of sourceTitle
  131.      */ 
  132.     public function getSourceTitle()
  133.     {
  134.         return $this->sourceTitle;
  135.     }
  136.     /**
  137.      * Set the value of sourceTitle
  138.      *
  139.      * @return  self
  140.      */ 
  141.     public function setSourceTitle($sourceTitle)
  142.     {
  143.         $this->sourceTitle $sourceTitle;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get the value of sourceUrl
  148.      */ 
  149.     public function getSourceUrl()
  150.     {
  151.         return $this->sourceUrl;
  152.     }
  153.     /**
  154.      * Set the value of sourceUrl
  155.      *
  156.      * @return  self
  157.      */ 
  158.     public function setSourceUrl($sourceUrl)
  159.     {
  160.         $this->sourceUrl $sourceUrl;
  161.         return $this;
  162.     }
  163.    
  164. }