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.

52 lines
899B

  1. <?php
  2. namespace Lc\PietroBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class Subthematic implements EntityInterface
  9. {
  10. /**
  11. * @ORM\Column(type="string", length=255)
  12. */
  13. private $name;
  14. /**
  15. * @ORM\ManyToOne(targetEntity=Thematic::class, inversedBy="subthematic")
  16. */
  17. private $thematic;
  18. public function __toString()
  19. {
  20. return $this->name;
  21. }
  22. public function getName(): ?string
  23. {
  24. return $this->name;
  25. }
  26. public function setName(string $name): self
  27. {
  28. $this->name = $name;
  29. return $this;
  30. }
  31. public function getThematic(): ?Thematic
  32. {
  33. return $this->thematic;
  34. }
  35. public function setThematic(?Thematic $thematic): self
  36. {
  37. $this->thematic = $thematic;
  38. return $this;
  39. }
  40. }