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

LoggerConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLogPath() 0 3 1
A getLogFilename() 0 3 1
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
}