-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathMonthShortNameType.php
65 lines (50 loc) · 1.46 KB
/
MonthShortNameType.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/*
* This file is part of the FreshDoctrineEnumBundle.
*
* (c) Artem Henvald <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\DoctrineEnumBundle\DBAL\Types;
/**
* MonthShortNameType.
*
* @author Artem Henvald <[email protected]>
*
* @extends AbstractEnumType<string, string>
*/
final class MonthShortNameType extends AbstractEnumType
{
public final const JANUARY = 'jan';
public final const FEBRUARY = 'feb';
public final const MARCH = 'mar';
public final const APRIL = 'apr';
public final const MAY = 'may';
public final const JUNE = 'jun';
public final const JULY = 'jul';
public final const AUGUST = 'aug';
public final const SEPTEMBER = 'sep';
public final const OCTOBER = 'oct';
public final const NOVEMBER = 'nov';
public final const DECEMBER = 'dec';
/**
* {@inheritdoc}
*/
protected static array $choices = [
self::JANUARY => 'January',
self::FEBRUARY => 'February',
self::MARCH => 'March',
self::APRIL => 'April',
self::MAY => 'May',
self::JUNE => 'June',
self::JULY => 'July',
self::AUGUST => 'August',
self::SEPTEMBER => 'September',
self::OCTOBER => 'October',
self::NOVEMBER => 'November',
self::DECEMBER => 'December',
];
}