SsoSpSendAuthnRequestProfileBuilderFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1
ccs 0
cts 5
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-Core package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Builder\Profile\WebBrowserSso\Sp;
13
14
use LightSaml\Build\Container\BuildContainerInterface;
15
16
class SsoSpSendAuthnRequestProfileBuilderFactory
17
{
18
    /** @var BuildContainerInterface */
19
    private $buildContainer;
20
21
    /**
22
     * @param BuildContainerInterface $buildContainer
23
     */
24
    public function __construct(BuildContainerInterface $buildContainer)
25
    {
26
        $this->buildContainer = $buildContainer;
27
    }
28
29
    /**
30
     * @param string $idpEntityId
31
     *
32
     * @return SsoSpSendAuthnRequestProfileBuilder
33
     */
34
    public function get($idpEntityId)
35
    {
36
        return new SsoSpSendAuthnRequestProfileBuilder($this->buildContainer, $idpEntityId);
37
    }
38
}
39