src/Entity/Souscription.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SouscriptionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: SouscriptionRepository::class)]
  6. class Souscription
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column]
  11. private ?int $id = null;
  12. #[ORM\ManyToOne(inversedBy: 'souscriptions')]
  13. private ?TypeAbonnement $typeabonnement = null;
  14. #[ORM\ManyToOne(inversedBy: 'souscriptions')]
  15. private ?PaymentMethod $paymentMethod = null;
  16. public function getId(): ?int
  17. {
  18. return $this->id;
  19. }
  20. public function getTypeabonnement(): ?TypeAbonnement
  21. {
  22. return $this->typeabonnement;
  23. }
  24. public function setTypeabonnement(?TypeAbonnement $typeabonnement): static
  25. {
  26. $this->typeabonnement = $typeabonnement;
  27. return $this;
  28. }
  29. public function getPaymentMethod(): ?PaymentMethod
  30. {
  31. return $this->paymentMethod;
  32. }
  33. public function setPaymentMethod(?PaymentMethod $paymentMethod): static
  34. {
  35. $this->paymentMethod = $paymentMethod;
  36. return $this;
  37. }
  38. }