Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

52 lines
962B

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigurationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\SovBundle\Doctrine\EntityInterface;
  6. use Lc\SovBundle\Doctrine\Extension\DevAliasInterface;
  7. use Lc\SovBundle\Doctrine\Extension\DevAliasTrait;
  8. /**
  9. * @ORM\Entity(repositoryClass=ConfigurationRepository::class)
  10. */
  11. class Configuration implements DevAliasInterface, EntityInterface
  12. {
  13. use DevAliasTrait;
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $value;
  24. public function __toString()
  25. {
  26. return $this->value;
  27. }
  28. public function getId(): ?int
  29. {
  30. return $this->id;
  31. }
  32. public function getValue(): ?string
  33. {
  34. return $this->value;
  35. }
  36. public function setValue(string $value): self
  37. {
  38. $this->value = $value;
  39. return $this;
  40. }
  41. }