UserManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
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
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getPermissions(UserPermissionInterface $user) : array
21
    {
22
        return $this->getUserPermissions($user);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function invalidatePermissions(UserPermissionInterface $user) : void
29
    {
30
    }
31
}