AbstractBillingIntangible.php 698 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * Enregistrement d'un produit à facturer par une Organization, un Access ou un EducationalProject
  7. * Classe de base de @see AccessIntangible, EducationalProjectIntangible
  8. */
  9. #[ORM\Entity]
  10. #[ORM\Table(name: 'BillingIntangible')]
  11. #[ORM\InheritanceType('SINGLE_TABLE')]
  12. #[ORM\DiscriminatorColumn(name: 'discr', type: 'string')]
  13. #[ORM\DiscriminatorMap([
  14. 'access' => 'AccessIntangible'
  15. ])]
  16. abstract class AbstractBillingIntangible{
  17. #[ORM\Id]
  18. #[ORM\Column]
  19. #[ORM\GeneratedValue]
  20. private ?int $id = null;
  21. public function getId(): ?int
  22. {
  23. return $this->id;
  24. }
  25. }