SloRequestProfileBuilder   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 26
rs 10
c 0
b 0
f 0
ccs 0
cts 12
cp 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getProfileId() 0 4 1
A getProfileRole() 0 4 1
A getActionBuilder() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-Logout package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the GPL-3 license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Logout\Builder\Profile\WebBrowserSlo;
13
14
use LightSaml\Builder\Profile\AbstractProfileBuilder;
15
use LightSaml\Context\Profile\ProfileContext;
16
use LightSaml\Logout\Builder\Action\Profile\SingleLogout\SloRequestActionBuilder;
17
use LightSaml\Logout\Profile\Profiles;
18
19
class SloRequestProfileBuilder extends AbstractProfileBuilder
20
{
21
    /**
22
     * @return string
23
     */
24
    protected function getProfileId()
25
    {
26
        return Profiles::SLO_SEND_LOGOUT_REQUEST;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    protected function getProfileRole()
33
    {
34
        return ProfileContext::ROLE_NONE;
35
    }
36
37
    /**
38
     * @return \LightSaml\Builder\Action\ActionBuilderInterface
39
     */
40
    protected function getActionBuilder()
41
    {
42
        return new SloRequestActionBuilder($this->container);
43
    }
44
}
45