選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

52 行
984B

  1. <?php
  2. namespace Lc\PietroBundle\Model\Subthematic;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\PietroBundle\Model\Thematic\ThematicInterface;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class Subthematic implements SubthematicInterface
  9. {
  10. /**
  11. * @ORM\Column(type="string", length=255)
  12. */
  13. protected $name;
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Thematic\ThematicInterface", inversedBy="subthematic")
  16. */
  17. protected $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(): ?ThematicInterface
  32. {
  33. return $this->thematic;
  34. }
  35. public function setThematic(?ThematicInterface $thematic): self
  36. {
  37. $this->thematic = $thematic;
  38. return $this;
  39. }
  40. }