src/Entity/AdditionalInformation.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\AdditionalInformationRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=AdditionalInformationRepository::class)
  8. * @ORM\Table(name="additional_informations", uniqueConstraints={
  9. * @ORM\UniqueConstraint(name="uniq_additional_information_key", columns={"info_key"})
  10. * })
  11. */
  12. class AdditionalInformation
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private ?int $id = null;
  20. /**
  21. * @ORM\Column(name="info_key", type="string", length=190)
  22. */
  23. private string $infoKey = '';
  24. /**
  25. * @ORM\Column(type="text")
  26. */
  27. private string $content = '';
  28. public function getId(): ?int
  29. {
  30. return $this->id;
  31. }
  32. public function getKey(): string
  33. {
  34. return $this->infoKey;
  35. }
  36. public function setKey(string $key): self
  37. {
  38. $this->infoKey = $key;
  39. return $this;
  40. }
  41. public function getContent(): string
  42. {
  43. return $this->content;
  44. }
  45. public function setContent(string $content): self
  46. {
  47. $this->content = $content;
  48. return $this;
  49. }
  50. }