src/Entity/AppSettings.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\CommonTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\AppSettingsRepository")
  9.  * @ORM\Table(name="app_settings")
  10.  * @UniqueEntity({"uuid"})
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class AppSettings
  14. {
  15.     /**
  16.      * @ORM\Column(type="string", length=255, unique=true)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="text")
  21.      */
  22.     private $value;
  23.     /**
  24.      * @ORM\Id()
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $uKey;
  28.     public function getName(): ?string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(string $name): self
  33.     {
  34.         $this->name $name;
  35.         return $this;
  36.     }
  37.     public function getValue(): ?string
  38.     {
  39.         return $this->value;
  40.     }
  41.     public function setValue(string $value): self
  42.     {
  43.         $this->value $value;
  44.         return $this;
  45.     }
  46.     public function getUKey(): ?string
  47.     {
  48.         return $this->uKey;
  49.     }
  50.     public function setUKey(string $uKey): self
  51.     {
  52.         $this->uKey $uKey;
  53.         return $this;
  54.     }
  55. }