Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
ISO8601EnumArray
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2/**
3 * Jingga
4 *
5 * PHP Version 8.1
6 *
7 * @package   phpOMS\Localization
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15namespace phpOMS\Localization;
16
17use phpOMS\Stdlib\Base\EnumArray;
18
19/**
20 * Datetime ISO format.
21 *
22 * Careful only (1) is considered as the ISO8601 standard. This file is only supposed to
23 * contain all plausible datetime strings.
24 *
25 * @package phpOMS\Localization
26 * @license OMS License 2.0
27 * @link    https://jingga.app
28 * @since   1.0.0
29 */
30class ISO8601EnumArray extends EnumArray
31{
32    protected static array $constants = [
33        1 => 'YYYY-MM-DD hh:mm:ss', // ietf: rfc3339
34        2 => 'YYYY.MM.DD hh:mm:ss',
35        3 => 'DD-MM-YYYY hh:mm:ss',
36        4 => 'DD.MM.YYYY hh:mm:ss',
37    ];
38}