Passed
Push — feature/build-and-publish-test... ( c594c2...5abced )
by
unknown
18:44
created

Provider::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 4
dl 0
loc 6
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * Copyright 2014 SURFnet bv
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
18
19
namespace Surfnet\StepupSelfService\SamlStepupProviderBundle\Provider;
20
21
use Surfnet\SamlBundle\Entity\IdentityProvider;
22
use Surfnet\SamlBundle\Entity\ServiceProvider;
23
use Surfnet\StepupSelfService\SamlStepupProviderBundle\Saml\StateHandler;
24
25
final readonly class Provider
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class Provider
Loading history...
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 25 at column 6
Loading history...
26
{
27
    public function __construct(
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
28
        private string           $name,
29
        private ServiceProvider  $serviceProvider,
30
        private IdentityProvider $remoteIdentityProvider,
31
        private StateHandler     $stateHandler
32
    ) {
33
    }
34
35
    public function getStateHandler(): StateHandler
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getStateHandler()
Loading history...
36
    {
37
        return $this->stateHandler;
38
    }
39
40
    public function getRemoteIdentityProvider(): IdentityProvider
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getRemoteIdentityProvider()
Loading history...
41
    {
42
        return $this->remoteIdentityProvider;
43
    }
44
45
    public function getServiceProvider(): ServiceProvider
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getServiceProvider()
Loading history...
46
    {
47
        return $this->serviceProvider;
48
    }
49
50
    public function getName(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getName()
Loading history...
51
    {
52
        return $this->name;
53
    }
54
}
55