SessionInject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setSession() 0 4 1
1
<?php
2
3
namespace Ray\SymfonySessionModule;
4
5
use Ray\Di\Di\Inject;
6
use Symfony\Component\HttpFoundation\Session\SessionInterface;
7
8
trait SessionInject
9
{
10
    /**
11
     * @var SessionInterface
12
     */
13
    protected $session;
14
15
    /**
16
     * @param SessionInterface $session
17
     *
18
     * @Inject
19
     */
20
    public function setSession(SessionInterface $session)
21
    {
22
        $this->session = $session;
23
    }
24
}
25