|
1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
-
- namespace Lc\PietroBundle\Model;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectInterface;
- use Lc\PietroBundle\Doctrine\Extension\DescriptionProjectTrait;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Revolt implements DescriptionProjectInterface, RevoltInterface
- {
- use DescriptionProjectTrait;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\IndividualDataInterface", inversedBy="revolt")
- */
- private $individualData;
-
-
- public function __toString()
- {
- return "Nos révoltes";
- }
-
- public function getIndividualData(): ?IndividualDataInterface
- {
- return $this->individualData;
- }
-
- public function setIndividualData(?IndividualDataInterface $individualData): self
- {
- $this->individualData = $individualData;
-
- return $this;
- }
- }
|