app/Customize/Entity/ShortUrlVisit.php line 14

Open in your IDE?
  1. <?php
  2. namespace Customize\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Entity\Product;
  5. /**
  6.  * Short url visit
  7.  *
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="dtb_short_url_visits")
  10.  */
  11. class ShortUrlVisit extends \Eccube\Entity\AbstractEntity
  12. {
  13.     /**
  14.      * @var integer
  15.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      * @ORM\Column(name="ip_address", type="string", length=255, nullable=true)
  23.      */
  24.     private $ip_address;
  25.     /**
  26.      * @var string
  27.      * @ORM\Column(name="operating_system", type="string", length=255, nullable=true)
  28.      */
  29.     private $operating_system;
  30.     /**
  31.      * @var string
  32.      * @ORM\Column(name="operating_system_version", type="string", length=255, nullable=true)
  33.      */
  34.     private $operating_system_version;
  35.     /**
  36.      * @var string
  37.      * @ORM\Column(name="device", type="string", length=255, nullable=true)
  38.      */
  39.     private $device;
  40.     /**
  41.      * @var string
  42.      * @ORM\Column(name="browser", type="string", length=255, nullable=true)
  43.      */
  44.     private $browser;
  45.     /**
  46.      * @var string
  47.      * @ORM\Column(name="browser_version", type="string", length=255, nullable=true)
  48.      */
  49.     private $browser_version;
  50.     /**
  51.      * @var \DateTime
  52.      *
  53.      * @ORM\Column(name="create_date", nullable=true, type="datetimetz")
  54.      */
  55.     private $create_date;
  56.     /**
  57.      * @var \DateTime
  58.      *
  59.      * @ORM\Column(name="update_date", nullable=true, type="datetimetz")
  60.      */
  61.     private $update_date;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity="Customize\Entity\ShortUrl", inversedBy="ShortUrlVisit")
  64.      * @ORM\JoinColumns({
  65.      *  @ORM\JoinColumn(name="short_url_id", referencedColumnName="id")
  66.      * })
  67.      */
  68.     private $ShortUrl;
  69.     public function getId()
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getShortUrlId()
  74.     {
  75.         return $this->short_url_id;
  76.     }
  77.     public function setShortUrlId($value)
  78.     {
  79.         $this->short_url_id $value;
  80.         return $this;
  81.     }
  82.     public function getIpAddress()
  83.     {
  84.         return $this->ip_address;
  85.     }
  86.     public function setIpAddress($value)
  87.     {
  88.         $this->ip_address $value;
  89.         return $this;
  90.     }
  91.     public function getOperatingSystem()
  92.     {
  93.         return $this->operating_system;
  94.     }
  95.     public function setOperatingSystem($value)
  96.     {
  97.         $this->operating_system $value;
  98.         return $this;
  99.     }
  100.     public function getOperatingSystemVersion()
  101.     {
  102.         return $this->operating_system_version;
  103.     }
  104.     public function setOperatingSystemVersion($value)
  105.     {
  106.         $this->operating_system_version $value;
  107.         return $this;
  108.     }
  109.     public function getDevice()
  110.     {
  111.         return $this->device;
  112.     }
  113.     public function setDevice($value)
  114.     {
  115.         $this->device $value;
  116.         return $this;
  117.     }
  118.     public function getBrowser()
  119.     {
  120.         return $this->browser;
  121.     }
  122.     public function setBrowser($value)
  123.     {
  124.         $this->browser $value;
  125.         return $this;
  126.     }
  127.     public function getBrowserVersion()
  128.     {
  129.         return $this->browser_version;
  130.     }
  131.     public function setBrowserVersion($value)
  132.     {
  133.         $this->browser_version $value;
  134.         return $this;
  135.     }
  136.     public function getShortUrl()
  137.     {
  138.         return $this->ShortUrl;
  139.     }
  140.     public function setShortUrl($value)
  141.     {
  142.         $this->ShortUrl $value;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Set createDate.
  147.      *
  148.      * @param \DateTime $createDate
  149.      *
  150.      * @return ShortUrlVisit
  151.      */
  152.     public function setCreateDate($createDate)
  153.     {
  154.         $this->create_date $createDate;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Get createDate.
  159.      *
  160.      * @return \DateTime
  161.      */
  162.     public function getCreateDate()
  163.     {
  164.         return $this->create_date;
  165.     }
  166.     /**
  167.      * Set updateDate.
  168.      *
  169.      * @param \DateTime $updateDate
  170.      *
  171.      * @return ShortUrlVisit
  172.      */
  173.     public function setUpdateDate($updateDate)
  174.     {
  175.         $this->update_date $updateDate;
  176.         return $this;
  177.     }
  178.     /**
  179.      * Get updateDate.
  180.      *
  181.      * @return \DateTime
  182.      */
  183.     public function getUpdateDate()
  184.     {
  185.         return $this->update_date;
  186.     }
  187. }