src/Entity/QueryLogs.php line 13

Open in your IDE?
  1. <?php
  2. // src/Entity/QueryLogs.php
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="query_logs")
  8.  */
  9. class QueryLogs
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="text")
  19.      */
  20.     private $queryText;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     private $executedBy;
  25.     /**
  26.      * @ORM\Column(type="datetime")
  27.      */
  28.     private $createdAt;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */
  32.     private $affectedCount;
  33.     /**
  34.      * @ORM\Column(type="text")
  35.      */
  36.     private $ipAddress;
  37.     // Add getters and setters
  38.     public function setQueryText($queryText)
  39.     {
  40.         $this->queryText $queryText;
  41.         return $this;
  42.     }
  43.     public function setExecutedBy($executedBy)
  44.     {
  45.         $this->executedBy $executedBy;
  46.         return $this;
  47.     }
  48.     
  49.     public function setCreatedAt($createdAt)
  50.     {
  51.         $this->createdAt $createdAt;
  52.         return $this;
  53.     }
  54.     public function setAffectedCount($affectedCount)
  55.     {
  56.         $this->affectedCount $affectedCount;
  57.         return $this;
  58.     }
  59.     public function setIpAddress($ipAddress)
  60.     {
  61.         $this->ipAddress $ipAddress;
  62.         return $this;
  63.     }
  64. }