EmailAddressKeyType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
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 41
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
 * Email address key type
9
 */
10
class EmailAddressKeyType extends DataType
11
{
12
    /**
13
     * Key for a contacts first email address
14
     *
15
     * @var string
16
     */
17
    const EMAIL_ADDRESS_1 = 'EmailAddress1';
18
19
    /**
20
     * Key for a contacts second email address
21
     *
22
     * @var string
23
     */
24
    const EMAIL_ADDRESS_2 = 'EmailAddress2';
25
26
    /**
27
     * Key for a contacts third email address
28
     *
29
     * @var string
30
     */
31
    const EMAIL_ADDRESS_3 = 'EmailAddress3';
32
33
    /**
34
     * Value of the desired mapping. Should be one of the constants from the
35
     * EmailAddressKeyType class.
36
     *
37
     * @var string
38
     */
39
    public $_;
40
41
    /**
42
     * Returns the value of this object as a string
43
     *
44
     * @return string
45
     */
46
    public function __toString()
47
    {
48
        return $this->_;
49
    }
50
}
51