ProviderAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 21
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setProviderClass() 0 3 1
A getProviderClass() 0 3 1
1
<?php
2
3
/*
4
 *
5
 * (c) Yaroslav Honcharuk <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Yarhon\RouteGuardBundle\Security\Test;
12
13
/**
14
 * @author Yaroslav Honcharuk <[email protected]>
15
 */
16
trait ProviderAwareTrait
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $providerClass;
22
23
    /**
24
     * @param string $class
25
     */
26 19
    public function setProviderClass($class)
27
    {
28 19
        $this->providerClass = $class;
29 19
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function getProviderClass()
35
    {
36 1
        return $this->providerClass;
37
    }
38
}
39