Passed
Push — main ( d28073...f4e9d2 )
by Jesse
01:39
created

SearchSettings   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A loggingFile() 0 3 1
A __construct() 0 8 1
A logSeparator() 0 3 1
A iterationInterval() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\PuzzleSolver;
4
5
final class SearchSettings
6
{
7
    /** @var string|null */
8
    private $loggingFile;
9
    /** @var string */
10
    private $logSeparator;
11
    /** @var int */
12
    private $iterationInterval;
13
14
    public function __construct(
15
        ?string $loggingFile,
16
        string $logSeparator,
17
        int $iterationInterval
18
    ) {
19
        $this->loggingFile = $loggingFile;
20
        $this->logSeparator = $logSeparator;
21
        $this->iterationInterval = $iterationInterval;
22
    }
23
24
    public function loggingFile(): ?string
25
    {
26
        return $this->loggingFile;
27
    }
28
29
    public function logSeparator(): string
30
    {
31
        return $this->logSeparator;
32
    }
33
34
    public function iterationInterval(): int
35
    {
36
        return $this->iterationInterval;
37
    }
38
}
39