You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0KB

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