LCSSettings   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 57
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPowLimit() 0 3 1
A setTooLong() 0 3 1
A getTooLong() 0 3 1
A setPowLimit() 0 3 1
A setUseGreedyMethod() 0 3 1
A isUseGreedyMethod() 0 3 1
1
<?php
2
/**
3
 * (c) Steve Nebes <[email protected]>
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
declare(strict_types=1);
10
11
namespace SN\DaisyDiff\RangeDifferencer\Core;
12
13
/**
14
 * Longest Common Subsequence Settings.
15
 */
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
47
    {
48 4
        return $this->powLimit;
49
    }
50
51
    /**
52
     * @param float $value
53
     */
54 7
    public function setPowLimit(float $value): void
55
    {
56 7
        $this->powLimit = $value;
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
71
    {
72 58
        $this->useGreedyMethod = $value;
73 58
    }
74
}
75