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

48 行
1.0KB

  1. <?php
  2. namespace Lc\PietroBundle\Model\Workshop;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. use Lc\SovBundle\Doctrine\Pattern\AbstractFullEntity;
  6. /**
  7. * @ORM\MappedSuperclass()
  8. */
  9. abstract class Solution extends AbstractFullEntity implements SolutionInterface, EntityInterface
  10. {
  11. /**
  12. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Workshop\WorkshopInterface", inversedBy="solutions")
  13. */
  14. protected $workshop;
  15. /**
  16. * @ORM\Column(type="string", length=256, nullable=true)
  17. */
  18. protected $videoLink;
  19. public function getWorkshop(): ?WorkshopInterface
  20. {
  21. return $this->workshop;
  22. }
  23. public function setWorkshop(WorkshopInterface $workshop): self
  24. {
  25. $this->workshop = $workshop;
  26. return $this;
  27. }
  28. public function getVideoLink(): ?string
  29. {
  30. return $this->videoLink;
  31. }
  32. public function setVideoLink(?string $videoLink): self
  33. {
  34. $this->videoLink = $videoLink;
  35. return $this;
  36. }
  37. }