Passed
Push — master ( e1084c...1b59a4 )
by Fabien
02:20
created

EditableConfig::setCommitsSince()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Churn\Configuration;
6
7
/**
8
 * @internal
9
 */
10
final class EditableConfig extends Config
11
{
12
    /**
13
     * @param array<int|string> $unrecognizedKeys The unrecognized keys.
14
     */
15
    public function setUnrecognizedKeys(array $unrecognizedKeys): void
16
    {
17
        $this->unrecognizedKeys = $unrecognizedKeys;
18
    }
19
20
    /**
21
     * @param integer $filesToShow The number of files to display in the results table.
22
     */
23
    public function setFilesToShow(int $filesToShow): void
24
    {
25
        $this->filesToShow = $filesToShow;
26
    }
27
28
    /**
29
     * @param float|null $minScoreToShow The minimum score for a file to be displayed (ignored if null).
30
     */
31
    public function setMinScoreToShow(?float $minScoreToShow): void
32
    {
33
        $this->minScoreToShow = $minScoreToShow;
34
    }
35
36
    /**
37
     * @param float|null $maxScoreThreshold The maximum score threshold.
38
     */
39
    public function setMaxScoreThreshold(?float $maxScoreThreshold): void
40
    {
41
        $this->maxScoreThreshold = $maxScoreThreshold;
42
    }
43
44
    /**
45
     * @param string $commitsSince Criteria to apply when counting changes.
46
     */
47
    public function setCommitsSince(string $commitsSince): void
48
    {
49
        $this->commitsSince = $commitsSince;
50
    }
51
52
    /**
53
     * @param array<string> $filesToIgnore The files to ignore.
54
     */
55
    public function setFilesToIgnore(array $filesToIgnore): void
56
    {
57
        $this->filesToIgnore = $filesToIgnore;
58
    }
59
60
    /**
61
     * @param array<string> $fileExtensions The file extensions to use when processing.
62
     */
63
    public function setFileExtensions(array $fileExtensions): void
64
    {
65
        $this->fileExtensions = $fileExtensions;
66
    }
67
68
    /**
69
     * @param string $vcs The version control system.
70
     */
71
    public function setVCS(string $vcs): void
72
    {
73
        $this->vcs = $vcs;
74
    }
75
76
    /**
77
     * @param string|null $cachePath The cache file path.
78
     */
79
    public function setCachePath(?string $cachePath): void
80
    {
81
        $this->cachePath = $cachePath;
82
    }
83
84
    /**
85
     * @param array<string> $hooks The hooks.
86
     */
87
    public function setHooks(array $hooks): void
88
    {
89
        $this->hooks = $hooks;
90
    }
91
}
92