src/Entity/Gos/Config.php line 13

Open in your IDE?
  1. <?php
  2.     namespace App\Entity\Gos;
  3.     use Doctrine\ORM\Mapping as ORM;
  4.     use Gedmo\Mapping\Annotation as Gedmo;
  5.     /**
  6.      * @ORM\Table(name="config")
  7.      * @ORM\Entity()
  8.      * @ORM\HasLifecycleCallbacks
  9.      */
  10.     class Config
  11.     {
  12.         /**
  13.          * @ORM\Id()
  14.          * @ORM\GeneratedValue()
  15.          * @ORM\Column(type="integer")
  16.          */
  17.         private $id;
  18.         /**
  19.          * @ORM\Column(type="string", length=32)
  20.          */
  21.         private $configKey;
  22.         /**
  23.          * @ORM\Column(type="string", length=255)
  24.          */
  25.         private $configValue;
  26.         /**
  27.          * @ORM\Column(type="string", length=255, nullable=true)
  28.          */
  29.         private $description;
  30.         /**
  31.          * @var \DateTime
  32.          *
  33.          * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  34.          */
  35.         private $updatedAt;
  36.         /** @ORM\PreUpdate() */
  37.         public function preUpdate()
  38.         {
  39.             $this->updatedAt = new \DateTime();
  40.         }
  41. //------------------------------------------------------------------------------------------------------------------
  42.         public function getId(): ?int
  43.         {
  44.             return $this->id;
  45.         }
  46.         public function getConfigKey(): ?string
  47.         {
  48.             return $this->configKey;
  49.         }
  50.         public function setConfigKey(string $configKey): self
  51.         {
  52.             $this->configKey $configKey;
  53.             return $this;
  54.         }
  55.         public function getConfigValue(): ?string
  56.         {
  57.             return $this->configValue;
  58.         }
  59.         public function setConfigValue(string $configValue): self
  60.         {
  61.             $this->configValue $configValue;
  62.             return $this;
  63.         }
  64.         public function getDescription(): ?string
  65.         {
  66.             return $this->description;
  67.         }
  68.         public function setDescription(string $description): self
  69.         {
  70.             $this->description $description;
  71.             return $this;
  72.         }
  73.         public function getUpdatedAt(): ?\DateTimeInterface
  74.         {
  75.             return $this->updatedAt;
  76.         }
  77.         public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  78.         {
  79.             $this->updatedAt $updatedAt;
  80.             return $this;
  81.         }
  82.     }