Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

63 lines
1.3KB

  1. <?php
  2. namespace Lc\PietroBundle\Doctrine\Extension;
  3. use Lc\PietroBundle\Model\Thematic\ThematicInterface;
  4. use Lc\PietroBundle\Model\Subthematic\SubthematicInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6. trait DescriptionProjectTrait
  7. {
  8. /**
  9. * @ORM\Column(type="text")
  10. */
  11. protected $description;
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Thematic\ThematicInterface")
  14. */
  15. protected $thematic;
  16. /**
  17. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Subthematic\SubthematicInterface")
  18. */
  19. protected $subthematic;
  20. public function getDescription(): ?string
  21. {
  22. return $this->description;
  23. }
  24. public function setDescription(string $description): self
  25. {
  26. $this->description = $description;
  27. return $this;
  28. }
  29. public function getThematic(): ?ThematicInterface
  30. {
  31. return $this->thematic;
  32. }
  33. public function setThematic(?ThematicInterface $thematic): self
  34. {
  35. $this->thematic = $thematic;
  36. return $this;
  37. }
  38. public function getSubthematic(): ?SubthematicInterface
  39. {
  40. return $this->subthematic;
  41. }
  42. public function setSubthematic(?SubthematicInterface $subthematic): self
  43. {
  44. $this->subthematic = $subthematic;
  45. return $this;
  46. }
  47. }