Completed
Push — master ( ceee37...536973 )
by Enea
02:33
created

Range   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 1
b 0
f 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A getRange() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * Created by enea dhack - 19/07/2020 14:43.
4
 */
5
6
namespace Vaened\Searcher;
7
8
class Range implements Rangeable
9
{
10
    private array $range;
11
12
    public function __construct(array $range)
13
    {
14
        $this->range = $range;
15
    }
16
17
    public static function create($value1, $value2): self
18
    {
19
        return new static([$value1, $value2]);
20
    }
21
22
    public function getRange(): array
23
    {
24
        return $this->range;
25
    }
26
}
27