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 RECRUIMENT_NAME 'RECRUIMENT';
  17.     public const RENOVATION_NAME 'RENOVATION';
  18.     public const CANCELLATION_NAME 'CANCELLATION';
  19.     public const MIGRATION_NAME 'MIGRATION';
  20.     public const INIT_AMOUNT_NAME 'INIT_AMOUNT';
  21.     public const AVAILABLE_HISTORY_TYPE = [
  22.         self::RECRUIMENT => self::RECRUIMENT_NAME,
  23.         self::RENOVATION => self::RENOVATION_NAME,
  24.         self::CANCELLATION => self::CANCELLATION_NAME,
  25.         self::MIGRATION => self::MIGRATION_NAME,
  26.         self::INIT_AMOUNT => self::INIT_AMOUNT_NAME,
  27.     ];
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Id
  32.      *
  33.      * @ORM\GeneratedValue(strategy="AUTO")
  34.      *
  35.      * @ORM\Column(type="integer", name="id")
  36.      */
  37.     private $id;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(type="string")
  42.      */
  43.     private $type;
  44.     /**
  45.      * @return int
  46.      */
  47.     public function getId(): int
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * @return string
  53.      */
  54.     public function getType(): string
  55.     {
  56.         return $this->type;
  57.     }
  58. }