Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Revolt.php 1.0KB

3 lat temu
3 lat temu
3 lat temu
12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Lc\PietroBundle\Model\Revolt;
  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. use Lc\SovBundle\Doctrine\EntityInterface;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class Revolt implements DescriptionProjectInterface, RevoltInterface, EntityInterface
  12. {
  13. use DescriptionProjectTrait;
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\IndividualData\IndividualDataInterface", inversedBy="revolt")
  16. */
  17. protected $individualData;
  18. public function __toString()
  19. {
  20. return "Nos révoltes";
  21. }
  22. public function getIndividualData(): ?IndividualDataInterface
  23. {
  24. return $this->individualData;
  25. }
  26. public function setIndividualData(?IndividualDataInterface $individualData): self
  27. {
  28. $this->individualData = $individualData;
  29. return $this;
  30. }
  31. }