src/AtechNet/CoreBundle/Entity/CustomerViewLog.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\AtechNet\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping\Column;
  4. use Doctrine\ORM\Mapping\Entity;
  5. use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
  6. use Doctrine\ORM\Mapping\JoinColumn;
  7. use Doctrine\ORM\Mapping\ManyToOne;
  8. use Doctrine\ORM\Mapping\Table as Table;
  9. /**
  10.  * CustomerViewLog
  11.  *
  12.  * @Table(name="customers__view_log")
  13.  * @Entity
  14.  * @HasLifecycleCallbacks
  15.  */
  16. class CustomerViewLog extends AbstractEntity
  17. {
  18.     /**
  19.      * @var Customer
  20.      *
  21.      * @ManyToOne(targetEntity="Customer", inversedBy="viewLogs")
  22.      * @JoinColumn(name="customer_id", referencedColumnName="id")
  23.      */
  24.     private $customer;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @Column(name="path", type="text")
  29.      */
  30.     private $path;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @Column(name="referer", type="text")
  35.      */
  36.     private $referer;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @Column(name="remote_address", type="string", length=16)
  41.      */
  42.     private $remoteAddress;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @Column(name="remote_host", type="string", length=255)
  47.      */
  48.     private $remoteHost;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @Column(name="geo_ip", type="string", length=255)
  53.      */
  54.     private $geoIp;
  55.     /**
  56.      * @var string
  57.      *
  58.      * @Column(name="agent", type="text")
  59.      */
  60.     private $agent;
  61.     /**
  62.      * @return Customer
  63.      */
  64.     public function getCustomer()
  65.     {
  66.         return $this->customer;
  67.     }
  68.     /**
  69.      * @param Customer $customer
  70.      */
  71.     public function setCustomer($customer)
  72.     {
  73.         $this->customer = $customer;
  74.     }
  75.     /**
  76.      * Set path
  77.      *
  78.      * @param string $path
  79.      * @return CustomerViewLog
  80.      */
  81.     public function setPath($path)
  82.     {
  83.         $this->path = $path;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get path
  88.      *
  89.      * @return string
  90.      */
  91.     public function getPath()
  92.     {
  93.         return $this->path;
  94.     }
  95.     /**
  96.      * Set referer
  97.      *
  98.      * @param string $referer
  99.      * @return CustomerViewLog
  100.      */
  101.     public function setReferer($referer)
  102.     {
  103.         $this->referer = $referer;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get referer
  108.      *
  109.      * @return string
  110.      */
  111.     public function getReferer()
  112.     {
  113.         return $this->referer;
  114.     }
  115.     /**
  116.      * Set remoteAddress
  117.      *
  118.      * @param string $remoteAddress
  119.      * @return CustomerViewLog
  120.      */
  121.     public function setRemoteAddress($remoteAddress)
  122.     {
  123.         $this->remoteAddress = $remoteAddress;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get remoteAddress
  128.      *
  129.      * @return string
  130.      */
  131.     public function getRemoteAddress()
  132.     {
  133.         return $this->remoteAddress;
  134.     }
  135.     /**
  136.      * Set remoteHost
  137.      *
  138.      * @param string $remoteHost
  139.      * @return CustomerViewLog
  140.      */
  141.     public function setRemoteHost($remoteHost)
  142.     {
  143.         $this->remoteHost = $remoteHost;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get remoteHost
  148.      *
  149.      * @return string
  150.      */
  151.     public function getRemoteHost()
  152.     {
  153.         return $this->remoteHost;
  154.     }
  155.     /**
  156.      * @return string
  157.      */
  158.     public function getGeoIp()
  159.     {
  160.         return $this->geoIp;
  161.     }
  162.     /**
  163.      * @param string $geoIp
  164.      */
  165.     public function setGeoIp($geoIp)
  166.     {
  167.         $this->geoIp = $geoIp;
  168.     }
  169.     /**
  170.      * Set agent
  171.      *
  172.      * @param string $agent
  173.      * @return CustomerViewLog
  174.      */
  175.     public function setAgent($agent)
  176.     {
  177.         $this->agent = $agent;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get agent
  182.      *
  183.      * @return string
  184.      */
  185.     public function getAgent()
  186.     {
  187.         return $this->agent;
  188.     }
  189. }