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.

39 line
970B

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