Passed
Push — master ( 849420...11d690 )
by Bastien
02:22
created

DeamonLoggerExtraContext   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 25
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getLocale() 0 3 1
A __construct() 0 4 1
A getApplicationName() 0 3 1
1
<?php
2
3
namespace Deamon\LoggerExtraBundle\Services;
4
5
class DeamonLoggerExtraContext
6
{
7
    /**
8
     * @var string|null
9
     */
10
    private $locale;
11
    /**
12
     * @var string|null
13
     */
14
    private $applicationName;
15
16 6
    public function __construct(?string $applicationName, ?string $locale = null)
17
    {
18 6
        $this->applicationName = $applicationName;
19 6
        $this->locale = $locale;
20 6
    }
21
22 4
    public function getLocale(): ?string
23
    {
24 4
        return $this->locale;
25
    }
26
27 4
    public function getApplicationName(): ?string
28
    {
29 4
        return $this->applicationName;
30
    }
31
}
32