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

AccessManager::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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