InstitutionConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
0 ignored issues
show
Coding Style introduced by
The file-level docblock must follow the opening PHP tag in the file header
Loading history...
6
 * Copyright 2022 SURFnet bv
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this file except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 *     http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20
21
namespace Surfnet\StepupMiddleware\GatewayBundle\Entity;
22
23
use Doctrine\ORM\Mapping as ORM;
24
use Surfnet\StepupMiddleware\GatewayBundle\Repository\InstitutionConfigurationRepository;
25
26
#[ORM\Entity(repositoryClass: InstitutionConfigurationRepository::class)]
27
class InstitutionConfiguration
28
{
29
    public function __construct(
30
        #[ORM\Id]
31
        #[ORM\Column(length: 255)]
32
        public string $institution,
33
        /**
34
         * @var bool is the SSO on 2FA feature enabled?
35
         */
36
        #[ORM\Column(type: 'boolean')]
37
        public bool $ssoOn2faEnabled,
38
        /**
39
         * @var bool is the GSSP fallback (SSO registration bypass) feature enabled?
40
         */
41
        #[ORM\Column(type: 'boolean')]
42
        public bool $ssoRegistrationBypass,
43
    ) {
44
    }
45
}
46