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

Comparision::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
ccs 0
cts 6
cp 0
crap 2
rs 10
c 0
b 0
f 0
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