Completed
Push — master ( e79dfa...ffecda )
by Benjamin
02:16
created

AccessManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A canAccess() 0 3 1
1
<?php
2
3
namespace Alpixel\Bundle\UserBundle\Services;
4
5
use Doctrine\Bundle\DoctrineBundle\Registry;
6
use Symfony\Component\Security\Core\SecurityContext;
7
8
class AccessManager
9
{
10
  protected $securityContext;
11
    protected $doctrine;
12
13
    public function __construct(Registry $doctrine, SecurityContext $context)
14
    {
15
        $this->securityContext = $context;
16
        $this->doctrine  = $doctrine;
17
    }
18
19
    public function canAccess($type)
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
    }
22
}
23