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

Range::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 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