AbstractSessionListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 2
cts 4
cp 0.5
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/code-coverage project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Bridge\CodeCoverage\Listener;
15
16
use Doyo\Bridge\CodeCoverage\Session\SessionInterface;
17
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
18
19
abstract class AbstractSessionListener implements EventSubscriberInterface
20
{
21
    protected $session;
22
23 10
    public function __construct(
24
        SessionInterface $session
25
    ) {
26 10
        $this->session = $session;
27
    }
28
}
29