src/Entity/AuditTrail.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Profile
  6.  *
  7.  * @ORM\Table(name="zlogs_audit_trail")
  8.  * @ORM\Entity
  9.  */
  10. class AuditTrail {
  11.     /**
  12.      * @var integer
  13.      *
  14.      * @ORM\Column(name="id", type="integer", nullable=false, options={"default"="nextval('zlogs_audit_trail_id_seq'::regclass)"})
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  17.      * @ORM\SequenceGenerator(sequenceName="zlogs_audit_trail_id_seq", allocationSize=1, initialValue=1)
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="datetime", name="log_time")
  22.      */
  23.     private $logTime;
  24.     /**
  25.      * @ORM\Column(type="string",length=32, name="ip_address")
  26.      */
  27.     private $ipAddress;
  28.     /**
  29.      * @ORM\Column(type="string",length=50, name="session_id")
  30.      */
  31.     private $sessionId;
  32.     /**
  33.      * @ORM\Column(type="string",length=50, name="user_name")
  34.      */
  35.     private $userName;
  36.     /**
  37.      * @ORM\Column(type="string",length=50, name="bundle_name")
  38.      */
  39.     private $bundleName;
  40.     /**
  41.      * @ORM\Column(type="string",length=50, name="controller_name")
  42.      */
  43.     private $controllerName;
  44.     /**
  45.      * @ORM\Column(type="string",length=50, name="action_name")
  46.      */
  47.     private $actionName;
  48.     /**
  49.      * @ORM\Column(type="string",length=99, name="route")
  50.      */
  51.     private $route;
  52.     /**
  53.      * Get id
  54.      *
  55.      * @return integer 
  56.      */
  57.     public function getId()
  58.     {
  59.         return $this->id;
  60.     }
  61.     /**
  62.      * Set logTime
  63.      *
  64.      * @param \DateTime $logTime
  65.      * @return AuditTrail
  66.      */
  67.     public function setLogTime($logTime)
  68.     {
  69.         $this->logTime $logTime;
  70.         return $this;
  71.     }
  72.     /**
  73.      * Get logTime
  74.      *
  75.      * @return \DateTime 
  76.      */
  77.     public function getLogTime()
  78.     {
  79.         return $this->logTime;
  80.     }
  81.     /**
  82.      * Set ipAddress
  83.      *
  84.      * @param string $ipAddress
  85.      * @return AuditTrail
  86.      */
  87.     public function setIpAddress($ipAddress)
  88.     {
  89.         $this->ipAddress $ipAddress;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get ipAddress
  94.      *
  95.      * @return string 
  96.      */
  97.     public function getIpAddress()
  98.     {
  99.         return $this->ipAddress;
  100.     }
  101.     /**
  102.      * Set sessionId
  103.      *
  104.      * @param string $sessionId
  105.      * @return AuditTrail
  106.      */
  107.     public function setSessionId($sessionId)
  108.     {
  109.         $this->sessionId $sessionId;
  110.         return $this;
  111.     }
  112.     /**
  113.      * Get sessionId
  114.      *
  115.      * @return string 
  116.      */
  117.     public function getSessionId()
  118.     {
  119.         return $this->sessionId;
  120.     }
  121.     /**
  122.      * Set userName
  123.      *
  124.      * @param string $userName
  125.      * @return AuditTrail
  126.      */
  127.     public function setUserName($userName)
  128.     {
  129.         $this->userName $userName;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get userName
  134.      *
  135.      * @return string 
  136.      */
  137.     public function getUserName()
  138.     {
  139.         return $this->userName;
  140.     }
  141.     /**
  142.      * Set bundleName
  143.      *
  144.      * @param string $bundleName
  145.      * @return AuditTrail
  146.      */
  147.     public function setBundleName($bundleName)
  148.     {
  149.         $this->bundleName $bundleName;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get bundleName
  154.      *
  155.      * @return string 
  156.      */
  157.     public function getBundleName()
  158.     {
  159.         return $this->bundleName;
  160.     }
  161.     /**
  162.      * Set controllerName
  163.      *
  164.      * @param string $controllerName
  165.      * @return AuditTrail
  166.      */
  167.     public function setControllerName($controllerName)
  168.     {
  169.         $this->controllerName $controllerName;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get controllerName
  174.      *
  175.      * @return string 
  176.      */
  177.     public function getControllerName()
  178.     {
  179.         return $this->controllerName;
  180.     }
  181.     /**
  182.      * Set actionName
  183.      *
  184.      * @param string $actionName
  185.      * @return AuditTrail
  186.      */
  187.     public function setActionName($actionName)
  188.     {
  189.         $this->actionName $actionName;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get actionName
  194.      *
  195.      * @return string 
  196.      */
  197.     public function getActionName()
  198.     {
  199.         return $this->actionName;
  200.     }
  201.     /**
  202.      * Set route
  203.      *
  204.      * @param string $route
  205.      * @return AuditTrail
  206.      */
  207.     public function setRoute($route)
  208.     {
  209.         $this->route $route;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Get route
  214.      *
  215.      * @return string 
  216.      */
  217.     public function getRoute()
  218.     {
  219.         return $this->route;
  220.     }
  221. }