Total Complexity | 6 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class LCSSettings |
||
17 | { |
||
18 | /** @var float */ |
||
19 | private $tooLong = 10000000.0; |
||
20 | |||
21 | /** @var float */ |
||
22 | private $powLimit = 1.5; |
||
23 | |||
24 | /** @var bool */ |
||
25 | private $useGreedyMethod = false; |
||
26 | |||
27 | /** |
||
28 | * @return float |
||
29 | */ |
||
30 | 15 | public function getTooLong(): float |
|
31 | { |
||
32 | 15 | return $this->tooLong; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param float $value |
||
37 | */ |
||
38 | 7 | public function setTooLong(float $value): void |
|
39 | { |
||
40 | 7 | $this->tooLong = $value; |
|
41 | 7 | } |
|
42 | |||
43 | /** |
||
44 | * @return float |
||
45 | */ |
||
46 | 4 | public function getPowLimit(): float |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param float $value |
||
53 | */ |
||
54 | 7 | public function setPowLimit(float $value): void |
|
57 | 7 | } |
|
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | 73 | public function isUseGreedyMethod(): bool |
|
63 | { |
||
64 | 73 | return $this->useGreedyMethod; |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param bool $value |
||
69 | */ |
||
70 | 58 | public function setUseGreedyMethod(bool $value): void |
|
73 | 58 | } |
|
74 | } |
||
75 |