|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
-
- namespace Lc\PietroBundle\Model\Revolt;
-
- 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 Revolt implements DescriptionProjectInterface, RevoltInterface, EntityInterface
- {
- use DescriptionProjectTrait;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\IndividualData\IndividualDataInterface", inversedBy="revolt")
- */
- protected $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;
- }
- }
|