Completed
Push — master ( 45b9c9...1f87c5 )
by Nikola
03:27
created

TokenStorageAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setTokenStorage() 0 4 1
1
<?php
2
/*
3
 * This file is part of the  TraitorBundle, an RunOpenCode project.
4
 *
5
 * (c) 2016 RunOpenCode
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace RunOpenCode\Bundle\Traitor\Traits;
11
12
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
13
14
trait TokenStorageAwareTrait
15
{
16
    protected $tokenStorage;
17
18
    public function setTokenStorage(TokenStorageInterface $tokenStorage)
19
    {
20
        $this->tokenStorage = $tokenStorage;
21
    }
22
}
23