src/CoreBundle/Entity/Info.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace CoreBundle\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table("info")
  7. * @ORM\Entity
  8. */
  9. class Info
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\Column(name="id", type="integer")
  14. * @ORM\GeneratedValue(strategy="AUTO")
  15. */
  16. public int $id;
  17. /**
  18. * @ORM\Column(name="key", type="string", length=100, nullable=false, unique=true)
  19. */
  20. private string $key;
  21. /**
  22. * @ORM\Column(name="value", type="text", nullable=false)
  23. */
  24. private string $value;
  25. /**
  26. * @ORM\Column(name="display_name", type="string", length=100, nullable=false, unique=false)
  27. */
  28. private string $displayName;
  29. public function getKey(): string
  30. {
  31. return $this->key;
  32. }
  33. public function setKey(string $key): void
  34. {
  35. $this->key = $key;
  36. }
  37. public function getValue(): string
  38. {
  39. return $this->value;
  40. }
  41. public function setValue(string $value): void
  42. {
  43. $this->value = $value;
  44. }
  45. public function getDisplayName(): string
  46. {
  47. return $this->displayName;
  48. }
  49. public function setDisplayName(string $displayName): void
  50. {
  51. $this->displayName = $displayName;
  52. }
  53. public function getId(): int
  54. {
  55. return $this->id;
  56. }
  57. public function setId(int $id): void
  58. {
  59. $this->id = $id;
  60. }
  61. }