Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | trait Fuzzy |
||
16 | { |
||
17 | use |
||
18 | Boost, |
||
19 | MaxExpansions, |
||
20 | PrefixLength |
||
21 | ; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $fuzziness; |
||
27 | |||
28 | /** |
||
29 | * @var Boolean |
||
30 | */ |
||
31 | protected $transpositions; |
||
32 | |||
33 | /** |
||
34 | * @param string $fuzziness |
||
35 | * |
||
36 | * @return self |
||
37 | */ |
||
38 | 5 | public function fuzziness(string $fuzziness): self |
|
39 | { |
||
40 | 5 | $this->fuzziness = $fuzziness; |
|
41 | |||
42 | 5 | return $this; |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param Boolean $transpositions |
||
47 | * |
||
48 | * @return self |
||
49 | */ |
||
50 | 4 | public function transpositions(bool $transpositions): self |
|
55 | } |
||
56 | } |
||
57 |