Test Failed
Push — master ( 31150b...7a8e59 )
by Mike
06:11
created

SecurityFactory::createSecurityProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
4
namespace Xervice\Security;
5
6
7
use Xervice\Core\Factory\AbstractFactory;
8
use Xervice\Security\Business\Provider\SecurityProvider;
9
use Xervice\Security\Business\Provider\SecurityProviderInterface;
10
11
class SecurityFactory extends AbstractFactory
12
{
13
    /**
14
     * @return \Xervice\Security\Business\Provider\SecurityProvider
15
     */
16
    public function createSecurityProvider(): SecurityProviderInterface
17
    {
18
        return new SecurityProvider(
19
            $this->getAuthenticatorList()
20
        );
21
    }
22
23
    /**
24
     * @return array
25
     */
26
    public function getAuthenticatorList(): array
27
    {
28
        return $this->getDependency(SecurityDependencyProvider::AUTHENTICATOR_LIST);
29
    }
30
}