src/Entity/System/SubscriptionStatus.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_status")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\System\SubscriptionStatusRepository")
  8. */
  9. class SubscriptionStatus
  10. {
  11. public const STATUS_ACTIVE = 1;
  12. public const STATUS_CANCELED = 2;
  13. public const STATUS_FINISHED = 3;
  14. public const STATUS_PENDING_PAYMENT = 4;
  15. public const STATUS_TRANSFERRED = 5;
  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", length=15)
  30. */
  31. private $status;
  32. /**
  33. * @return int
  34. */
  35. public function getId(): int
  36. {
  37. return $this->id;
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getStatus(): string
  43. {
  44. return $this->status;
  45. }
  46. }