src/Entity/System/SubscriptionCustomerHistoryType.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_customer_history_type")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\System\SubscriptionCustomerHistoryTypeRepository")
  8. */
  9. class SubscriptionCustomerHistoryType
  10. {
  11. public const RECRUIMENT = 1;
  12. public const RENOVATION = 2;
  13. public const CANCELLATION = 3;
  14. public const MIGRATION = 4;
  15. public const INIT_AMOUNT = 5;
  16. public const CANCELLATION_REQUEST = 6;
  17. public const RENOVATION_FAILED = 7;
  18. /**
  19. * @var int
  20. *
  21. * @ORM\Id
  22. *
  23. * @ORM\GeneratedValue(strategy="AUTO")
  24. *
  25. * @ORM\Column(type="integer", name="id")
  26. */
  27. private $id;
  28. /**
  29. * @var string
  30. *
  31. * @ORM\Column(type="string")
  32. */
  33. private $type;
  34. public function getId(): int
  35. {
  36. return $this->id;
  37. }
  38. public function setId(int $id): SubscriptionCustomerHistoryType
  39. {
  40. $this->id = $id;
  41. return $this;
  42. }
  43. public function getType(): string
  44. {
  45. return $this->type;
  46. }
  47. public function setType(string $type): SubscriptionCustomerHistoryType
  48. {
  49. $this->type = $type;
  50. return $this;
  51. }
  52. }