Test Failed
Push — main ( 2f8de4...07b5fa )
by Bingo
15:07
created

DateTimeFunctions::dateTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 1
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Jabe\Engine\Impl\El;
4
5
use Jabe\Engine\Impl\Util\ClockUtil;
6
7
class DateTimeFunctions
8
{
9
    public const NOW = "now";
10
    public const DATE_TIME = "dateTime";
11
12
    public static function now(): \DateTime
13
    {
14
        return ClockUtil::getCurrentTime();
15
    }
16
17
    public static function dateTime(): \DateTime
18
    {
19
        return self::now();
20
    }
21
}
22