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. /** @deprecated */
  13. public const TYPE_COURSES = 2;
  14. /** @deprecated */
  15. public const TYPE_ACADEMY_REGISTRATION = 3;
  16. /**
  17. * @var int
  18. *
  19. * @ORM\Id
  20. *
  21. * @ORM\GeneratedValue(strategy="AUTO")
  22. *
  23. * @ORM\Column(type="integer", name="id")
  24. */
  25. private $id;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(type="string")
  30. */
  31. private $type;
  32. /**
  33. * @return int
  34. */
  35. public function getId(): int
  36. {
  37. return $this->id;
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getType(): string
  43. {
  44. return $this->type;
  45. }
  46. public function setType(string $type): SubscriptionType
  47. {
  48. $this->type = $type;
  49. return $this;
  50. }
  51. }