Passed
Push — master ( 6ba131...29ab56 )
by Andy
01:16
created

Comparision   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 8 1
1
<?php
2
3
namespace Palmtree\Chrono\Option;
4
5
abstract class Comparision
6
{
7
    public const EQUAL_TO = '==';
8
    public const LESS_THAN = '<';
9
    public const LESS_THAN_OR_EQUAL_TO = '<=';
10
    public const GREATER_THAN = '>';
11
    public const GREATER_THAN_OR_EQUAL_TO = '>=';
12
13
    public static function toArray(): array
14
    {
15
        return [
16
            self::EQUAL_TO,
17
            self::LESS_THAN,
18
            self::LESS_THAN_OR_EQUAL_TO,
19
            self::GREATER_THAN,
20
            self::GREATER_THAN_OR_EQUAL_TO,
21
        ];
22
    }
23
}
24