SsoSpSendAuthnRequestProfileBuilderFactory::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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