Test Failed
Push — master ( 67b70b...c2443c )
by Mike
02:06
created

LoggerConfig::getLogFilename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Logger;
6
7
8
use Xervice\Core\Config\AbstractConfig;
9
10
class LoggerConfig extends AbstractConfig
11
{
12
    public const LOG_PATH = 'log.path';
13
    public const LOG_FILENAME = 'log.filename';
14
15
    /**
16
     * @return string
17
     */
18
    public function getLogPath(): string
19
    {
20
        return $this->get(self::LOG_PATH);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getLogFilename(): string
27
    {
28
        return $this->get(self::LOG_FILENAME, 'xervice.log');
29
    }
30
}