PHPVersion::current()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Habemus\Utility;
5
6
abstract class PHPVersion
7
{
8
    const V5_3 = 50300;
9
    const V5_4 = 50400;
10
    const V5_6 = 50600;
11
    const V7_0 = 70000;
12
    const V7_1 = 70100;
13
    const V7_2 = 70200;
14
    const V7_3 = 70300;
15
    const V7_4 = 70400;
16
    const V8_0 = 80000;
17
18
    public static function current(): int
19
    {
20
        return PHP_VERSION_ID;
21
    }
22
}
23