Passed
Push — release_2_0 ( cc9048...126c34 )
by Tomasz
10:50
created

Device_Generic   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

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\xml;
23
24
class Device_Generic extends Device_XML {
0 ignored issues
show
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
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;
42
    }
43
44
}
45