mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add some constants string to constants
This commit is contained in:
parent
c5b4a44ff3
commit
9539214d24
@ -42,7 +42,37 @@ use Chill\MainBundle\Entity\User;
|
|||||||
*/
|
*/
|
||||||
class AccompanyingPeriod
|
class AccompanyingPeriod
|
||||||
{
|
{
|
||||||
const INTENSITY = ['occasional', 'regular'];
|
/**
|
||||||
|
* Mark an accompanying period as "occasional"
|
||||||
|
*
|
||||||
|
* used in INTENSITY
|
||||||
|
*/
|
||||||
|
public const INTENSITY_OCCASIONAL = 'occasional';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mark an accompanying period as "regular"
|
||||||
|
*
|
||||||
|
* used in INTENSITY
|
||||||
|
*/
|
||||||
|
public const INTENSITY_REGULAR = 'regular';
|
||||||
|
|
||||||
|
public const INTENSITIES = [self::INTENSITY_OCCASIONAL, self::INTENSITY_REGULAR];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mark an accompanying period as "draft".
|
||||||
|
*
|
||||||
|
* This means that the accompanying period is not yet
|
||||||
|
* confirmed by the creator
|
||||||
|
*/
|
||||||
|
public const STEP_DRAFT = 'DRAFT';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mark an accompanying period as "confirmed".
|
||||||
|
*
|
||||||
|
* This means that the accompanying period **is**
|
||||||
|
* confirmed by the creator
|
||||||
|
*/
|
||||||
|
public const STEP_CONFIRMED = 'CONFIRMED';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var integer
|
* @var integer
|
||||||
@ -117,7 +147,7 @@ class AccompanyingPeriod
|
|||||||
* @var string
|
* @var string
|
||||||
* @ORM\Column(type="string", length=32, nullable=true)
|
* @ORM\Column(type="string", length=32, nullable=true)
|
||||||
*/
|
*/
|
||||||
private $step = 'DRAFT';
|
private $step = self::STEP_DRAFT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity=Origin::class)
|
* @ORM\ManyToOne(targetEntity=Origin::class)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user