You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0KB

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