Completed
Push — master ( be772b...99d542 )
by Tomas
16:16
created

UserManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPermissions() 0 4 1
A invalidatePermissions() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Eziat\PermissionBundle\Manager;
6
7
use Eziat\PermissionBundle\Model\UserManagerAbstract;
8
use Eziat\PermissionBundle\Model\UserManagerInterface;
9
use Eziat\PermissionBundle\Model\UserPermissionInterface;
10
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
11
12
/**
13
 * @author Tomas Jakl <[email protected]>
14
 */
15
class UserManager extends UserManagerAbstract implements UserManagerInterface
16
{
17
    public function __construct(TokenStorageInterface $tokenStorage)
18
    {
19
        parent::__construct($tokenStorage);
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getPermissions(UserPermissionInterface $user = null) : array
26
    {
27
        return $this->getUserPermissions($user);
28
    }
29
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function invalidatePermissions(UserPermissionInterface $user) : void
35
    {
36
    }
37
}