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

SearchSettings::logSeparator()   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
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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