Total Complexity | 5 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Index |
||
6 | { |
||
7 | public $name; |
||
8 | public $bits = 256; |
||
9 | public $transformers = []; |
||
10 | public $strategies = []; |
||
11 | public $fast = true; |
||
12 | |||
13 | /** |
||
14 | * @param string $name |
||
15 | * @return Index |
||
16 | */ |
||
17 | 44 | public function name(string $name) |
|
18 | { |
||
19 | 44 | $this->name = $name; |
|
20 | |||
21 | 44 | return $this; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param array $transformers |
||
26 | * @return Index |
||
27 | */ |
||
28 | 44 | public function transformers(array $transformers): self |
|
29 | { |
||
30 | 44 | $this->transformers = $transformers; |
|
31 | |||
32 | 44 | return $this; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param array $strategies |
||
37 | * @return $this |
||
38 | */ |
||
39 | 44 | public function strategies(array $strategies): self |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param int $bits |
||
48 | * @return Index |
||
49 | */ |
||
50 | 44 | public function bits(int $bits): self |
|
51 | { |
||
52 | 44 | $this->bits = $bits; |
|
53 | |||
54 | 44 | return $this; |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param bool $value |
||
59 | * @return Index |
||
60 | */ |
||
61 | 44 | public function fast(bool $value = true): self |
|
66 | } |
||
67 | } |
||
68 |