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.

41 line
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. }