<?php
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
use Eccube\Entity\Product;
/**
* Short url visit
*
* @ORM\Entity
* @ORM\Table(name="dtb_short_url_visits")
*/
class ShortUrlVisit extends \Eccube\Entity\AbstractEntity
{
/**
* @var integer
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
* @ORM\Column(name="ip_address", type="string", length=255, nullable=true)
*/
private $ip_address;
/**
* @var string
* @ORM\Column(name="operating_system", type="string", length=255, nullable=true)
*/
private $operating_system;
/**
* @var string
* @ORM\Column(name="operating_system_version", type="string", length=255, nullable=true)
*/
private $operating_system_version;
/**
* @var string
* @ORM\Column(name="device", type="string", length=255, nullable=true)
*/
private $device;
/**
* @var string
* @ORM\Column(name="browser", type="string", length=255, nullable=true)
*/
private $browser;
/**
* @var string
* @ORM\Column(name="browser_version", type="string", length=255, nullable=true)
*/
private $browser_version;
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", nullable=true, type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", nullable=true, type="datetimetz")
*/
private $update_date;
/**
* @ORM\ManyToOne(targetEntity="Customize\Entity\ShortUrl", inversedBy="ShortUrlVisit")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="short_url_id", referencedColumnName="id")
* })
*/
private $ShortUrl;
public function getId()
{
return $this->id;
}
public function getShortUrlId()
{
return $this->short_url_id;
}
public function setShortUrlId($value)
{
$this->short_url_id = $value;
return $this;
}
public function getIpAddress()
{
return $this->ip_address;
}
public function setIpAddress($value)
{
$this->ip_address = $value;
return $this;
}
public function getOperatingSystem()
{
return $this->operating_system;
}
public function setOperatingSystem($value)
{
$this->operating_system = $value;
return $this;
}
public function getOperatingSystemVersion()
{
return $this->operating_system_version;
}
public function setOperatingSystemVersion($value)
{
$this->operating_system_version = $value;
return $this;
}
public function getDevice()
{
return $this->device;
}
public function setDevice($value)
{
$this->device = $value;
return $this;
}
public function getBrowser()
{
return $this->browser;
}
public function setBrowser($value)
{
$this->browser = $value;
return $this;
}
public function getBrowserVersion()
{
return $this->browser_version;
}
public function setBrowserVersion($value)
{
$this->browser_version = $value;
return $this;
}
public function getShortUrl()
{
return $this->ShortUrl;
}
public function setShortUrl($value)
{
$this->ShortUrl = $value;
return $this;
}
/**
* Set createDate.
*
* @param \DateTime $createDate
*
* @return ShortUrlVisit
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get createDate.
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set updateDate.
*
* @param \DateTime $updateDate
*
* @return ShortUrlVisit
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get updateDate.
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
}