<?php namespace App\Entity\Gos; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; /** * @ORM\Table(name="config") * @ORM\Entity() * @ORM\HasLifecycleCallbacks */ class Config { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=32) */ private $configKey; /** * @ORM\Column(type="string", length=255) */ private $configValue; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $description; /** * @var \DateTime * * @ORM\Column(name="updated_at", type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); }//------------------------------------------------------------------------------------------------------------------ public function getId(): ?int { return $this->id; } public function getConfigKey(): ?string { return $this->configKey; } public function setConfigKey(string $configKey): self { $this->configKey = $configKey; return $this; } public function getConfigValue(): ?string { return $this->configValue; } public function setConfigValue(string $configValue): self { $this->configValue = $configValue; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } }