|
- <?php
-
- namespace Lc\PietroBundle\Model\Dream;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectInterface;
- use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectTrait;
- use Lc\PietroBundle\Model\IndividualData\IndividualDataInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Dream implements DescriptionProjectInterface, DreamInterface
- {
- use DescriptionProjectTrait;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\IndividualData\IndividualDataInterface", inversedBy="dream")
- */
- protected $individualData;
-
-
- public function __toString()
- {
- return "Nos rêves";
- }
-
- public function getIndividualData(): ?IndividualDataInterface
- {
- return $this->individualData;
- }
-
- public function setIndividualData(?IndividualDataInterface $individualData): self
- {
- $this->individualData = $individualData;
-
- return $this;
- }
-
- }
|