您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Subthematic.php 905B

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