src/Entity/Core/Info.php line 11

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