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

DeamonLoggerExtraContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 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