<?php
namespace App\AtechNet\CoreBundle\Entity;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\Table as Table;
/**
* CustomerViewLog
*
* @Table(name="customers__view_log")
* @Entity
* @HasLifecycleCallbacks
*/
class CustomerViewLog extends AbstractEntity
{
/**
* @var Customer
*
* @ManyToOne(targetEntity="Customer", inversedBy="viewLogs")
* @JoinColumn(name="customer_id", referencedColumnName="id")
*/
private $customer;
/**
* @var string
*
* @Column(name="path", type="text")
*/
private $path;
/**
* @var string
*
* @Column(name="referer", type="text")
*/
private $referer;
/**
* @var string
*
* @Column(name="remote_address", type="string", length=16)
*/
private $remoteAddress;
/**
* @var string
*
* @Column(name="remote_host", type="string", length=255)
*/
private $remoteHost;
/**
* @var string
*
* @Column(name="geo_ip", type="string", length=255)
*/
private $geoIp;
/**
* @var string
*
* @Column(name="agent", type="text")
*/
private $agent;
/**
* @return Customer
*/
public function getCustomer()
{
return $this->customer;
}
/**
* @param Customer $customer
*/
public function setCustomer($customer)
{
$this->customer = $customer;
}
/**
* Set path
*
* @param string $path
* @return CustomerViewLog
*/
public function setPath($path)
{
$this->path = $path;
return $this;
}
/**
* Get path
*
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Set referer
*
* @param string $referer
* @return CustomerViewLog
*/
public function setReferer($referer)
{
$this->referer = $referer;
return $this;
}
/**
* Get referer
*
* @return string
*/
public function getReferer()
{
return $this->referer;
}
/**
* Set remoteAddress
*
* @param string $remoteAddress
* @return CustomerViewLog
*/
public function setRemoteAddress($remoteAddress)
{
$this->remoteAddress = $remoteAddress;
return $this;
}
/**
* Get remoteAddress
*
* @return string
*/
public function getRemoteAddress()
{
return $this->remoteAddress;
}
/**
* Set remoteHost
*
* @param string $remoteHost
* @return CustomerViewLog
*/
public function setRemoteHost($remoteHost)
{
$this->remoteHost = $remoteHost;
return $this;
}
/**
* Get remoteHost
*
* @return string
*/
public function getRemoteHost()
{
return $this->remoteHost;
}
/**
* @return string
*/
public function getGeoIp()
{
return $this->geoIp;
}
/**
* @param string $geoIp
*/
public function setGeoIp($geoIp)
{
$this->geoIp = $geoIp;
}
/**
* Set agent
*
* @param string $agent
* @return CustomerViewLog
*/
public function setAgent($agent)
{
$this->agent = $agent;
return $this;
}
/**
* Get agent
*
* @return string
*/
public function getAgent()
{
return $this->agent;
}
}