Passed
Push — master ( 89d4ac...68779c )
by Claudio
02:14
created

Configuration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setNullableSort() 0 3 1
A getNullableSort() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Budgegeria\IntlSort\Collator;
6
7
class Configuration
8
{
9
    public const NULL_VALUES_FIRST = 1;
10
    public const NULL_VALUES_LAST  = 2;
11
12
    private ?int $nullableSort = null;
13
14
    public function setNullableSort(?int $value): void
15
    {
16
        $this->nullableSort = $value;
17
    }
18
19
    public function getNullableSort(): ?int
20
    {
21
        return $this->nullableSort;
22
    }
23
}
24