PhoneNumberKeyType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 153
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 153
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
1
<?php
2
3
namespace PhpEws\DataType;
4
5
use PhpEws\DataType;
6
7
/**
8
 * Phone number key type
9
 */
10
class PhoneNumberKeyType extends DataType
11
{
12
    /**
13
     * Phone number key for assistant phone number
14
     *
15
     * @var string
16
     */
17
    const ASSISTANT_PHONE = 'AssistantPhone';
18
19
    /**
20
     * Phone number key for business fax number
21
     *
22
     * @var string
23
     */
24
    const BUSINESS_FAX = 'BusinessFax';
25
26
    /**
27
     * Phone number key for business phone number
28
     *
29
     * @var string
30
     */
31
    const BUSINESS_PHONE = 'BusinessPhone';
32
33
    /**
34
     * Phone number key for second business phone number
35
     *
36
     * @var string
37
     */
38
    const BUSINESS_PHONE_2 = 'BusinessPhone2';
39
40
    /**
41
     * Phone number key for callback
42
     *
43
     * @var string
44
     */
45
    const CALLBACK = 'Callback';
46
47
    /**
48
     * Phone number key for car phone
49
     *
50
     * @var string
51
     */
52
    const CAR_PHONE = 'CarPhone';
53
54
    /**
55
     * Phone number key for company main phone
56
     *
57
     * @var string
58
     */
59
    const COMPANY_MAIN_PHONE = 'CompanyMainPhone';
60
61
    /**
62
     * Phone number key for home fax number
63
     *
64
     * @var string
65
     */
66
    const HOME_FAX = 'HomeFax';
67
68
    /**
69
     * Phone number key for home phone number
70
     *
71
     * @var string
72
     */
73
    const HOME_PHONE = 'HomePhone';
74
75
    /**
76
     * Phone number key for second home phone number
77
     *
78
     * @var string
79
     */
80
    const HOME_PHONE_2 = 'HomePhone2';
81
82
    /**
83
     * Phone number key for ISDN line
84
     *
85
     * @var string
86
     */
87
    const ISDN = 'Isdn';
88
89
    /**
90
     * Phone number key for mobile phone number
91
     *
92
     * @var string
93
     */
94
    const MOBILE_PHONE = 'MobilePhone';
95
96
    /**
97
     * Phone number key for other fax number
98
     *
99
     * @var string
100
     */
101
    const OTHER_FAX = 'OtherFax';
102
103
    /**
104
     * Phone number key for other phone number
105
     *
106
     * @var string
107
     */
108
    const OTHER_PHONE = 'OtherTelephone';
109
110
    /**
111
     * Phone number key for pager
112
     *
113
     * @var string
114
     */
115
    const PAGER = 'Pager';
116
117
    /**
118
     * Phone number key for primary phone number
119
     *
120
     * @var string
121
     */
122
    const PRIMARY_PHONE = 'PrimaryPhone';
123
124
    /**
125
     * Phone number key for radio phone number
126
     *
127
     * @var string
128
     */
129
    const RADIO_PHONE = 'RadioPhone';
130
131
    /**
132
     * Phone number key for telex
133
     *
134
     * @var string
135
     */
136
    const TELEX = 'Telex';
137
138
    /**
139
     * Phone number key for TTY TTD phone number
140
     *
141
     * @var string
142
     */
143
    const TTY_TTD_PHONE = 'TtyTtdPhone';
144
145
    /**
146
     * Value of the desired mapping. Should be one of the constants from the
147
     * PhoneNumberKeyType class.
148
     *
149
     * @var string
150
     */
151
    public $_;
152
153
    /**
154
     * Returns the value of this object as a string
155
     *
156
     * @return string
157
     */
158
    public function __toString()
159
    {
160
        return $this->_;
161
    }
162
}
163