ProviderAwareTrait::setProviderClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 1
crap 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