Enumeration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 26
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
1
<?php
2
/**
3
 * Contains \jamesiarmes\PhpEws\Enumeration.
4
 */
5
6
namespace jamesiarmes\PhpEws;
7
8
/**
9
 * Base class for Exchange Web Service Enumerations.
10
 *
11
 * @package php-ews\Enumeration
12
 */
13
class Enumeration extends Type
14
{
15
    /**
16
     * Element value.
17
     *
18
     * @deprecated 1.0.0
19
     *   This property will be removed in a future release and should not be
20
     *   used. Instead, you should reference the constants implemented in the
21
     *   class directly.
22
     *
23
     * @var string
24
     */
25
    public $_;
26
27
    /**
28
     * Returns the value of this enumeration as a string..
29
     *
30
     * @return string
31
     *
32
     * @suppress PhanDeprecatedProperty
33
     */
34
    public function __toString()
35
    {
36
        return $this->_;
0 ignored issues
show
Deprecated Code introduced by
The property jamesiarmes\PhpEws\Enumeration::$_ has been deprecated with message: 1.0.0 This property will be removed in a future release and should not be used. Instead, you should reference the constants implemented in the class directly.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
37
    }
38
}
39