src/Entity/Configuration.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigurationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=ConfigurationRepository::class)
  8. * @ORM\Table(
  9. * indexes={
  10. * @ORM\Index(name="idx_config_name", columns={"name"})
  11. * }
  12. * )
  13. */
  14. class Configuration
  15. {
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue
  19. * @ORM\Column(type="integer")
  20. * @Groups({"ConfigurationList"})
  21. */
  22. private $id;
  23. /**
  24. * @ORM\Column(type="string", length=255)
  25. * @Groups({"ConfigurationList"})
  26. */
  27. private $name;
  28. /**
  29. * @ORM\Column(type="text")
  30. * @Groups({"ConfigurationList"})
  31. */
  32. private $value;
  33. /**
  34. * @ORM\Column(type="boolean", nullable=true)
  35. * @Groups({"ConfigurationList"})
  36. */
  37. private $visible;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getName(): ?string
  43. {
  44. return $this->name;
  45. }
  46. public function setName(string $name): self
  47. {
  48. $this->name = $name;
  49. return $this;
  50. }
  51. public function getValue(): ?string
  52. {
  53. return $this->value;
  54. }
  55. public function setValue(string $value): self
  56. {
  57. $this->value = $value;
  58. return $this;
  59. }
  60. public function getVisible(): ?bool
  61. {
  62. return $this->visible;
  63. }
  64. public function setVisible(?bool $visible): self
  65. {
  66. $this->visible = $visible;
  67. return $this;
  68. }
  69. }