Event::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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