Passed
Push — master ( 64000f...4be0cb )
by Tomasz
10:23
created

DeviceGeneric   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
/*
3
 * *****************************************************************************
4
 * Contributions to this work were made on behalf of the GÉANT project, a 
5
 * project that has received funding from the European Union’s Framework 
6
 * Programme 7 under Grant Agreements No. 238875 (GN3) and No. 605243 (GN3plus),
7
 * Horizon 2020 research and innovation programme under Grant Agreements No. 
8
 * 691567 (GN4-1) and No. 731122 (GN4-2).
9
 * On behalf of the aforementioned projects, GEANT Association is the sole owner
10
 * of the copyright in all material which was developed by a member of the GÉANT
11
 * project. GÉANT Vereniging (Association) is registered with the Chamber of 
12
 * Commerce in Amsterdam with registration number 40535155 and operates in the 
13
 * UK as a branch of GÉANT Vereniging.
14
 * 
15
 * Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. 
16
 * UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK
17
 *
18
 * License: see the web/copyright.inc.php file in the file structure or
19
 *          <base_url>/copyright.php after deploying the software
20
 */
21
22
namespace devices\eap_config;
23
24
class DeviceGeneric extends DeviceXML {
25
26
    /**
27
     * construct the device
28
     */
29
    final public function __construct() {
30
        parent::__construct();
31
        $this->setSupportedEapMethods([
32
            \core\common\EAP::EAPTYPE_PEAP_MSCHAP2,
33
            \core\common\EAP::EAPTYPE_TTLS_PAP,
34
            \core\common\EAP::EAPTYPE_TTLS_MSCHAP2,
35
            \core\common\EAP::EAPTYPE_TLS,
36
            \core\common\EAP::EAPTYPE_PWD,
37
            \core\common\EAP::EAPTYPE_SILVERBULLET,
38
        ]);
39
        $this->langScope = 'single';
40
        $this->allEaps = TRUE;
41
        $this->eduroamCATcompatibility = FALSE;
0 ignored issues
show
Bug Best Practice introduced by
The property eduroamCATcompatibility does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
42
    }
43
44
}
45