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ů.

87 lines
1.5KB

  1. <?php
  2. namespace App\Entity\Site;
  3. use App\Repository\Site\BlockRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\SovBundle\Doctrine\EntityInterface;
  6. use Lc\SovBundle\Doctrine\Extension\StatusInterface;
  7. use Lc\SovBundle\Doctrine\Extension\StatusTrait;
  8. /**
  9. * @ORM\Entity(repositoryClass=BlockRepository::class)
  10. */
  11. class Block implements EntityInterface, StatusInterface
  12. {
  13. use StatusTrait;
  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 $devAlias;
  24. /**
  25. * @ORM\Column(type="string", length=255)
  26. */
  27. private $title;
  28. /**
  29. * @ORM\Column(type="text", nullable=true)
  30. */
  31. private $description;
  32. public function __toString()
  33. {
  34. return $this->title;
  35. }
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getDevAlias(): ?string
  41. {
  42. return $this->devAlias;
  43. }
  44. public function setDevAlias(string $devAlias): self
  45. {
  46. $this->devAlias = $devAlias;
  47. return $this;
  48. }
  49. public function getTitle(): ?string
  50. {
  51. return $this->title;
  52. }
  53. public function setTitle(string $title): self
  54. {
  55. $this->title = $title;
  56. return $this;
  57. }
  58. public function getDescription(): ?string
  59. {
  60. return $this->description;
  61. }
  62. public function setDescription(?string $description): self
  63. {
  64. $this->description = $description;
  65. return $this;
  66. }
  67. }