ParameterAttributesProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isEnabled() 0 4 1
A getAttributes() 0 4 1
1
<?php
2
3
namespace Kuleuven\AuthenticationBundle\Service;
4
5
class ParameterAttributesProvider implements AttributesInjectionProviderInterface
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $overwrites;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $enabled;
16
17
    /**
18
     * @param array $overwrites
19
     * @param bool  $enabled
20
     */
21
    public function __construct($overwrites = [], $enabled = false)
22
    {
23
        $this->overwrites = $overwrites;
24
        $this->enabled = $enabled;
25
    }
26
27
    /**
28
     * @return bool
29
     */
30
    public function isEnabled()
31
    {
32
        return $this->enabled;
33
    }
34
35
    /**
36
     * @return array
37
     */
38
    public function getAttributes()
39
    {
40
        return $this->overwrites;
41
    }
42
}
43