CotisationStaffInfos.php 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Organization;
  4. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Classe ... qui ...
  8. */
  9. // #[Auditable]
  10. #[ORM\Entity]
  11. class CotisationStaffInfos
  12. {
  13. #[ORM\Id]
  14. #[ORM\Column]
  15. #[ORM\GeneratedValue]
  16. private ?int $id = null;
  17. #[ORM\OneToOne(targetEntity: CotisationByYear::class, inversedBy: 'cotisationStaffInfos', cascade: [])]
  18. protected CotisationByYear $cotisationByYear;
  19. public function getId(): ?int
  20. {
  21. return $this->id;
  22. }
  23. public function getCotisationByYear(): CotisationByYear
  24. {
  25. return $this->cotisationByYear;
  26. }
  27. public function setCotisationByYear(CotisationByYear $cotisationByYear): self
  28. {
  29. $this->cotisationByYear = $cotisationByYear;
  30. return $this;
  31. }
  32. }