Test Setup Failed
Push — master ( de37f4...b19653 )
by Tomasz
05:59
created

MsEapProfile::setOtherTlsName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * *****************************************************************************
5
 * Contributions to this work were made on behalf of the GÉANT project, a 
6
 * project that has received funding from the European Union’s Framework 
7
 * Programme 7 under Grant Agreements No. 238875 (GN3) and No. 605243 (GN3plus),
8
 * Horizon 2020 research and innovation programme under Grant Agreements No. 
9
 * 691567 (GN4-1) and No. 731122 (GN4-2).
10
 * On behalf of the aforementioned projects, GEANT Association is the sole owner
11
 * of the copyright in all material which was developed by a member of the GÉANT
12
 * project. GÉANT Vereniging (Association) is registered with the Chamber of 
13
 * Commerce in Amsterdam with registration number 40535155 and operates in the 
14
 * UK as a branch of GÉANT Vereniging.
15
 * 
16
 * Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. 
17
 * UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK
18
 *
19
 * License: see the web/copyright.inc.php file in the file structure or
20
 *          <base_url>/copyright.php after deploying the software
21
 */
22
23
/**
24
 * This class contains properties which are used to set up individual EAP methods
25
 * Some of the roperties are used only by a subset of EAP handlers.
26
 * The properties are set up with public interface methods.
27
 * 
28
 * @author Tomasz Wolniewicz <[email protected]>
29
 *
30
 * @package ModuleWriting
31
 */
32
33
namespace devices\ms;
34
35
abstract class MsEapProfile
36
{
37
    public $type;
38
    public $authorId;
39
    public $config;
40
41
42
    protected $caList;
43
    protected $serverNames;
44
    protected $outerId;
45
    protected $nea;
46
    protected $otherTlsName;
47
    protected $displayName;
48
    protected $idpId;
49
    protected $innerType;
50
    protected $innerTypeDisplay;
51
   
52
    const MS_BASEEAPCONN_NS = 'http://www.microsoft.com/provisioning/BaseEapConnectionPropertiesV1';
53
    
54
    public function setCAList($caList)
55
    {
56
        $this->caList = $caList;
57
    }
58
    
59
    public function setServerNames($serverNames)
60
    {
61
        $this->serverNames = $serverNames;
62
    }
63
    
64
    public function setOuterId($outerId)
65
    {
66
        $this->outerId = $outerId;
67
    }    
68
    
69
    public function setNea($nea)
70
    {
71
        $this->nea = $nea;
72
    }
73
    
74
    public function setOtherTlsName($otherTlsName)
75
    {
76
        $this->otherTlsName = $otherTlsName;
77
    }
78
    
79
    public function setConfig()
80
    {
81
        $this->config = $this->getConfig();
82
    }
83
    
84
    public function setDisplayName($displayName)
85
    {
86
        $this->displayName = $displayName;
87
    }
88
    
89
    public function setIdPId($id)
90
    {
91
        $this->idpId = $id;
92
    }
93
    
94
    public function setInnerType($type)
95
    {
96
        $this->innerType = $type;
97
    }
98
    
99
    public function setInnerTypeDisplay($type)
100
    {
101
        $this->innerTypeDisplay = $type;
102
    }
103
104
    /**
105
     * The getConfig method is required in every EAP handler
106
     */
107
    abstract protected function getConfig();
108
}
109