Completed
Push — master ( bf69c3...92abdd )
by Milos
03:34
created

SloRequestProfileBuilder   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

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
namespace LightSaml\Logout\Builder\Profile\WebBrowserSlo;
4
5
use LightSaml\Builder\Profile\AbstractProfileBuilder;
6
use LightSaml\Context\Profile\ProfileContext;
7
use LightSaml\Logout\Builder\Action\Profile\SingleLogout\SloRequestActionBuilder;
8
use LightSaml\Logout\Profile\Profiles;
9
10
class SloRequestProfileBuilder extends AbstractProfileBuilder
11
{
12
    /**
13
     * @return string
14
     */
15
    protected function getProfileId()
16
    {
17
        return Profiles::SLO_SEND_LOGOUT_REQUEST;
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    protected function getProfileRole()
24
    {
25
        return ProfileContext::ROLE_NONE;
26
    }
27
28
    /**
29
     * @return \LightSaml\Builder\Action\ActionBuilderInterface
30
     */
31
    protected function getActionBuilder()
32
    {
33
        return new SloRequestActionBuilder($this->container);
34
    }
35
}
36