Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

41 rinda
959B

  1. <?php
  2. namespace Lc\PietroBundle\Model\Dream;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectInterface;
  5. use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectTrait;
  6. use Lc\PietroBundle\Model\IndividualData\IndividualDataInterface;
  7. /**
  8. * @ORM\MappedSuperclass()
  9. */
  10. abstract class Dream implements DescriptionProjectInterface, DreamInterface
  11. {
  12. use DescriptionProjectTrait;
  13. /**
  14. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\IndividualData\IndividualDataInterface", inversedBy="dream")
  15. */
  16. protected $individualData;
  17. public function __toString()
  18. {
  19. return "Nos rêves";
  20. }
  21. public function getIndividualData(): ?IndividualDataInterface
  22. {
  23. return $this->individualData;
  24. }
  25. public function setIndividualData(?IndividualDataInterface $individualData): self
  26. {
  27. $this->individualData = $individualData;
  28. return $this;
  29. }
  30. }