src/Entity/System/SubscriptionType.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table(name="subscription_type")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\System\SubscriptionTypeRepository")
  8. */
  9. class SubscriptionType
  10. {
  11. public const TYPE_SUBSCRIPTIONS = 1;
  12. public const TYPE_COURSES = 2;
  13. public const TYPE_ACADEMY_REGISTRATION = 3;
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Id
  18. *
  19. * @ORM\GeneratedValue(strategy="AUTO")
  20. *
  21. * @ORM\Column(type="integer", name="id")
  22. */
  23. private $id;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(type="string")
  28. */
  29. private $type;
  30. /**
  31. * @return int
  32. */
  33. public function getId(): int
  34. {
  35. return $this->id;
  36. }
  37. /**
  38. * @return string
  39. */
  40. public function getType(): string
  41. {
  42. return $this->type;
  43. }
  44. }