Event   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSession() 0 4 1
1
<?php
2
namespace Sesshin\Event;
3
4
use Sesshin\Session;
5
use League\Event\Event as BaseEvent;
6
7
class Event extends BaseEvent
8
{
9
    /** @var Session */
10
    protected $session;
11
12
    /**
13
     * @param Session $session
14
     * @param string $name
15
     */
16
    public function __construct(Session $session, $name = null)
17
    {
18
        parent::__construct($name);
19
        $this->session = $session;
20
    }
21
22
    /**
23
     * @return Session
24
     */
25
    public function getSession()
26
    {
27
        return $this->session;
28
    }
29
}
30