src/Entity/Setting.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7. * @ORM\Entity(repositoryClass=SettingRepository::class)
  8. */
  9. class Setting extends BaseEntity
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. private $keyName;
  21. /**
  22. * @ORM\Column(type="text")
  23. */
  24. private $value;
  25. /**
  26. * @Gedmo\Slug(fields={"keyName"})
  27. * @ORM\Column(length=191)
  28. */
  29. private $slug;
  30. /**
  31. * @ORM\Column(type="string", length=255, nullable=true)
  32. */
  33. private $type;
  34. public function getId(): ?int
  35. {
  36. return $this->id;
  37. }
  38. public function getKeyName(): ?string
  39. {
  40. return $this->keyName;
  41. }
  42. public function setKeyName(string $keyName): self
  43. {
  44. $this->keyName = $keyName;
  45. return $this;
  46. }
  47. public function getValue(): ?string
  48. {
  49. return $this->value;
  50. }
  51. public function setValue(string $value): self
  52. {
  53. $this->value = $value;
  54. return $this;
  55. }
  56. /**
  57. * Get the value of slug
  58. */
  59. public function getSlug()
  60. {
  61. return $this->slug;
  62. }
  63. /**
  64. * Set the value of slug
  65. *
  66. * @return self
  67. */
  68. public function setSlug($slug)
  69. {
  70. $this->slug = $slug;
  71. return $this;
  72. }
  73. public function getType(): ?string
  74. {
  75. return $this->type;
  76. }
  77. public function setType(?string $type): self
  78. {
  79. $this->type = $type;
  80. return $this;
  81. }
  82. }