<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="subscription_customer_history_type")
*
* @ORM\Entity(repositoryClass="App\Repository\System\SubscriptionCustomerHistoryTypeRepository")
*/
class SubscriptionCustomerHistoryType
{
public const RECRUIMENT = 1;
public const RENOVATION = 2;
public const CANCELLATION = 3;
public const MIGRATION = 4;
public const INIT_AMOUNT = 5;
public const RECRUIMENT_NAME = 'RECRUIMENT';
public const RENOVATION_NAME = 'RENOVATION';
public const CANCELLATION_NAME = 'CANCELLATION';
public const MIGRATION_NAME = 'MIGRATION';
public const INIT_AMOUNT_NAME = 'INIT_AMOUNT';
public const AVAILABLE_HISTORY_TYPE = [
self::RECRUIMENT => self::RECRUIMENT_NAME,
self::RENOVATION => self::RENOVATION_NAME,
self::CANCELLATION => self::CANCELLATION_NAME,
self::MIGRATION => self::MIGRATION_NAME,
self::INIT_AMOUNT => self::INIT_AMOUNT_NAME,
];
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id")
*/
private $id;
/**
* @var string
*
* @ORM\Column(type="string")
*/
private $type;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
}