|
1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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;
- use Lc\SovBundle\Doctrine\EntityInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Dream implements DescriptionProjectInterface, DreamInterface, EntityInterface
- {
- 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;
- }
-
- }
|