vendor/tmwk/exception_notifier/Entity/ExceptionNotification.php line 26

Open in your IDE?
  1. <?php
  2. /*
  3.  * ************************************************************************
  4.  *  * Nombre del Archivo: ExceptionNotification.php
  5.  *  * Autor: Mario Figueroa [mfigueroa@tmwk.cl]
  6.  *  * Fecha de Creación: 7/8/23 15:06
  7.  *  ***********************************************************************
  8.  *  * Copyright (c) 2023 Mario Figueroa
  9.  *  * Queda prohibida la distribución y uso no autorizado de este archivo.
  10.  *  * Para obtener más detalles, consulta el archivo LICENSE.md
  11.  *  ***********************************************************************
  12.  */
  13. namespace TMWK\ExceptionNotifierBundle\Entity;
  14. use Doctrine\DBAL\Types\Types;
  15. use Doctrine\ORM\Mapping as ORM;
  16. use Symfony\Component\Validator\Constraints as Assert;
  17. //use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
  18. use Gedmo\Mapping\Annotation as Gedmo;
  19. /**
  20.  * @ORM\Entity
  21.  * @ORM\Table(name="exception_notification")
  22.  */
  23. class ExceptionNotification
  24. {
  25.     /**
  26.     * @ORM\Id
  27.     * @ORM\Column(type="integer")
  28.     * @ORM\GeneratedValue(strategy="AUTO")
  29.     */
  30.     protected $id;
  31.     /**
  32.     * @var string $message
  33.     *
  34.     * @ORM\Column(type="text", nullable=true)
  35.     */
  36.     protected $message;
  37.     /**
  38.     * @var string $file
  39.     *
  40.     * @ORM\Column(type="string", nullable=true)
  41.     */
  42.     protected $file;
  43.     /**
  44.     * @var integer $line
  45.     *
  46.     * @ORM\Column(type="integer", nullable=true)
  47.     */
  48.     protected $line;
  49.     /**
  50.     * @var string $code
  51.     *
  52.     * @ORM\Column(type="string", nullable=true)
  53.     */
  54.     protected $code;
  55.     /**
  56.     * @var integer $status_code
  57.     *
  58.     * @ORM\Column(type="integer", nullable=true, length=3)
  59.     */
  60.     protected $status_code;
  61.     
  62.     /**
  63.     * @var string $data_request
  64.     *
  65.     * @ORM\Column(type="text", nullable=true)
  66.     */
  67.     protected $data_request;
  68.     /**
  69.     * @var string $data_query
  70.     *
  71.     * @ORM\Column(type="text", nullable=true)
  72.     */
  73.     protected $data_query;
  74.     /**
  75.     * @var string $data_session
  76.     *
  77.     * @ORM\Column(type="text", nullable=true)
  78.     */
  79.     protected $data_session;
  80.     /**
  81.     * @var string $data_method
  82.     *
  83.     * @ORM\Column(type="string", length=4, nullable=true)
  84.     */
  85.     protected $data_method;
  86.     /**
  87.     * @var string $create_at
  88.     *
  89.     * @Gedmo\Timestampable(on="create")
  90.     * @ORM\Column(type="datetime", nullable=true)
  91.     */
  92.     protected $create_at;
  93.     public function __toString(): string
  94.     {
  95.         return $this->message;
  96.     }
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function getMessage(): ?string
  102.     {
  103.         return $this->message;
  104.     }
  105.     public function setMessage(?string $message): static
  106.     {
  107.         $this->message $message;
  108.         return $this;
  109.     }
  110.     public function getFile(): ?string
  111.     {
  112.         return $this->file;
  113.     }
  114.     public function setFile(?string $file): static
  115.     {
  116.         $this->file $file;
  117.         return $this;
  118.     }
  119.     public function getLine(): ?int
  120.     {
  121.         return $this->line;
  122.     }
  123.     public function setLine(?int $line): static
  124.     {
  125.         $this->line $line;
  126.         return $this;
  127.     }
  128.     public function getCode(): ?string
  129.     {
  130.         return $this->code;
  131.     }
  132.     public function setCode(?string $code): static
  133.     {
  134.         $this->code $code;
  135.         return $this;
  136.     }
  137.     public function getStatusCode(): ?int
  138.     {
  139.         return $this->status_code;
  140.     }
  141.     public function setStatusCode(?int $status_code): static
  142.     {
  143.         $this->status_code $status_code;
  144.         return $this;
  145.     }
  146.     public function getDataRequest(): ?string
  147.     {
  148.         return $this->data_request;
  149.     }
  150.     public function setDataRequest(?string $data_request): static
  151.     {
  152.         $this->data_request $data_request;
  153.         return $this;
  154.     }
  155.     public function getDataQuery(): ?string
  156.     {
  157.         return $this->data_query;
  158.     }
  159.     public function setDataQuery(?string $data_query): static
  160.     {
  161.         $this->data_query $data_query;
  162.         return $this;
  163.     }
  164.     public function getDataSession(): ?string
  165.     {
  166.         return $this->data_session;
  167.     }
  168.     public function setDataSession(?string $data_session): static
  169.     {
  170.         $this->data_session $data_session;
  171.         return $this;
  172.     }
  173.     public function getDataMethod(): ?string
  174.     {
  175.         return $this->data_method;
  176.     }
  177.     public function setDataMethod(?string $data_method): static
  178.     {
  179.         $this->data_method $data_method;
  180.         return $this;
  181.     }
  182.     public function getCreateAt(): ?\DateTimeInterface
  183.     {
  184.         return $this->create_at;
  185.     }
  186.     public function setCreateAt(?\DateTimeInterface $create_at): static
  187.     {
  188.         $this->create_at $create_at;
  189.         return $this;
  190.     }
  191. }