src/Entity/ErrorActivityLog.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * ErrorActivityLog
  7.  *
  8.  * @ORM\Table(name="error_activity_log")
  9.  * @ORM\Entity(repositoryClass="App\Repository\ErrorActivityLogRepository")
  10.  */
  11. class ErrorActivityLog
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="level", type="string", length=255, nullable=false)
  25.      */
  26.     private $level;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="message", type="text", length=0, nullable=false)
  31.      */
  32.     private $message;
  33.     /**
  34.      * @var array
  35.      *
  36.      * @ORM\Column(name="context", type="json", nullable=false)
  37.      */
  38.     private $context;
  39.     /**
  40.      * @var \DateTime
  41.      *
  42.      * @ORM\Column(name="created_at", type="datetime", nullable=false)
  43.      */
  44.     private $createdAt;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getLevel(): ?string
  50.     {
  51.         return $this->level;
  52.     }
  53.     public function setLevel(string $level): static
  54.     {
  55.         $this->level $level;
  56.         return $this;
  57.     }
  58.     public function getMessage(): ?string
  59.     {
  60.         return $this->message;
  61.     }
  62.     public function setMessage(string $message): static
  63.     {
  64.         $this->message $message;
  65.         return $this;
  66.     }
  67.     public function getContext(): array
  68.     {
  69.         return $this->context;
  70.     }
  71.     public function setContext(array $context): static
  72.     {
  73.         $this->context $context;
  74.         return $this;
  75.     }
  76.     public function getCreatedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->createdAt;
  79.     }
  80.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  81.     {
  82.         $this->createdAt $createdAt;
  83.         return $this;
  84.     }
  85. }